"Start a new DM" in sidebar for users who cannot use DMs

I just checked my forum from the perspective of a new user and found this new “start a new DM” entry in the sidebar[1]

However, the experience of using it was rather disappointing. The test user is in Chat allowed groups but not in Direct message enabled groups, so no user can be found in the search, which then opens.

After adding TL0 to 'Direct message enabled groups':

Is this intentional? Why is this visible for users who cannot use DM chats?


  1. I think it was added in UX: adds a start new dm link when no dms present by jjaffeux · Pull Request #34820 · discourse/discourse · GitHub ↩︎

1 like

No, not intentional — thanks for catching this. We’ll fix it up!

That should fix it thanks:

2 likes

Is it possible to also hide the line that would usually separate the DM section from the channel section?

When the user isn’t allowed to chat at all, there is no line below the tag section. But when they are allowed to chat, but not to use DM chats, then there is a line below the Channel section.

Will look if I can do this👍

1 like