Add plugin outlet for group chats similar to `after-chat-channel-username`

AI-generated summary

Users are discussing the need for a plugin outlet in Discourse’s group chats similar to after-chat-channel-username, which currently exists only for individual chats. jrgong highlights that group chats lack this feature, making it harder to render elements like icons or settings after the channel title. pfaffman suggests that adding such an outlet wouldn’t cost much and encourages submitting a PR if someone has the skills. NateDhaliwal explains that the outlet is designed for individual chats because it passes a user argument — implying group chats would need a different approach. Later, yuriy confirms that the after-chat-channel-username outlet is now available for both individual and group chats, referencing a pull request on GitHub. This resolves the original request, indicating the feature has been implemented. The discussion reflects community-driven development and collaboration to enhance Discourse’s chat functionality.

Hey guys,

We noticed that on the latest Discourse, for individual chats, there is an after-chat-channel-username outlet, but such an equivalent doesn’t exist in the group chats after-chat-channel-username.

For example, we would like to render a :gear: icon or ... after the chat title to make it more intuitive that there are per-chat settings available.

In our community, most users didn’t even realize that clicking the chat title opens the settings panel.

1 Like

If you’ve got someone who knows how, submitting a PR night make this happen sooner. In general they are open to adding plugin outlets as they don’t cost much.

From what I can see, the reason why that plugin doesn’t exist for groups is because the outlet has 1 argument given - the user messaging.

@pfaffman I suppose an {{else}} block and a plugin outlet with no outletArgs would work?

1 Like

Plugin outlet after-chat-channel-username is now available in both, individual and group chats:

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

2 Likes