The discussion revolves around a missing ‘New message’ button in the messaging center on the Discourse platform. sbernhard reports that the button is absent for regular users but appears for moderators and when sending messages via the user card. Thomas_G suggests checking the min trust to send messages setting, but sbernhard confirms it’s set to TL0, ruling that out. Stephen shares a screenshot showing the expected button location. sbernhard eventually discovers the issue: the ‘system’ user had disabled the ability to receive private messages, which hides the button. The button is still functional via the user card because the check is applied differently. zogstrip praises the debugging process, and sbernhard notes the setting was likely changed accidentally.
In the messaging center (on which you see your inbox, sent items, etc) there is no button to create a “new message”. Only for moderator / admins this button exists.
On the other side, the same user is able to create a new message, if he/she clicks on the avatar of a user and selects “new message” on the user card.
Can someone please let me know which setting I need to change?
@Thomas_G: The “min trust level to send messages” is set to TL0. So, this can not be the reason. @Stephen: Yes, the “new message” button above “inbox” is missing. But, as I said, on the user card the “message” button occurs which then can be used to send a message. Its weird.
I would have a look at the code if I would find the section to look at
I have discourse-encrypt enabled. I disabled the plugin but the button is still missing.
The issue was: the “system” user disabled the option to receive private messages.
The “New button” is guarded by “can_send_private_message?(Discourse.system_user)” → if you disable that the system user can receive private messages → the button is gone.
If you click directly on the “message” button on the User Card of a user, the guard is of course different as it will then verify the target user directly.
Thanks to everyone. Did I already mention, that open source code is beautiful?