Chat button not visible when personal messages are disabled

סיכום מבוסס בינה מלאכותית

A bug report details an issue where the “Chat” button fails to appear on user cards and profiles when personal messaging is restricted to specific groups (e.g., admins and moderators), even if the Chat plugin is enabled for all users. Mid notes that while users can still initiate direct messages via search, the UI button remains hidden, which is undesirable. The reporter provided reproduction steps confirming the issue occurs on a clean install and the current production environment. zogstrip acknowledged the finding, attributing the bug to a missing code path introduced in recent group-based site settings and linked to the relevant pull request.

If “Personal message enabled groups” is set to for example only admins and moderators in order to effectively disable personal messaging for users, the “Chat” button does not show up on user cards and user profiles even if the Chat plugin is turned on and the user is allowed to use it.

Users can still create DMs by searching for users, but it would be preferable if they can also use the Chat button even though I decide not to utilize the personal messaging system.

Reproduction steps:

  1. Set “Personal message enabled groups” to something like “admins, moderators”.
  2. Make sure “Chat enabled” is turned on and “Chat allowed groups” is set to something like “everyone”.
  3. Log in to an account that is not an admin or a moderator.
  4. Navigate to a user profile or open a user card.

Result:

  • Message and Chat buttons do not show up.

Desired result:

  • Only the Chat button shows up.

I tested this on a clean install as well as my primary one with safe-mode enabled. I searched around this forum and couldn’t immediately find another post about it. Forum version is 2026.2.0-latest.

4 לייקים

Nice find :+1:

Looks like we missed one code path when adding these group-based site settings.

https://github.com/discourse/discourse/pull/37920

3 לייקים

This topic was automatically closed after 2 days. New replies are no longer allowed.