Skip to content

A platform for community discussion. Free, open, simple.

FEATURE: adds plugin after-chat-channel-username in group chat (#35920)

Yuriy Kurant087665ef4716
diff --git a/plugins/chat/assets/javascripts/discourse/components/channel-name/index.gjs b/plugins/chat/assets/javascripts/discourse/components/channel-name/index.gjs
index 1a0ea1f64e8..07d2ef10e29 100644
--- a/plugins/chat/assets/javascripts/discourse/components/channel-name/index.gjs
+++ b/plugins/chat/assets/javascripts/discourse/components/channel-name/index.gjs
@@ -78,14 +78,12 @@ export default class ChatChannelName extends Component {
/>
{{/if}}
- {{#if this.showPluginOutlet}}
- <PluginOutlet
- @name="after-chat-channel-username"
- @outletArgs={{lazyHash user=@user}}
- @tagName=""
- @connectorTagName=""
- />
- {{/if}}
+ <PluginOutlet
+ @name="after-chat-channel-username"
+ @outletArgs={{if this.showPluginOutlet (lazyHash user=@user)}}
+ @tagName=""
+ @connectorTagName=""
+ />
{{#if (has-block)}}
{{yield}}