diff --git a/plugins/chat/assets/javascripts/discourse/components/chat-footer.gjs b/plugins/chat/assets/javascripts/discourse/components/chat-footer.gjs index fb43022b311..2d7ed5fea29 100644 --- a/plugins/chat/assets/javascripts/discourse/components/chat-footer.gjs +++ b/plugins/chat/assets/javascripts/discourse/components/chat-footer.gjs @@ -14,15 +14,23 @@ export default class ChatFooter extends Component { @service router; @service chat; @service siteSettings; + @service currentUser; - threadsEnabled = this.siteSettings.chat_threads_enabled; + get includeThreads() { + if (!this.siteSettings.chat_threads_enabled) { + return false; + } + return this.currentUser?.chat_channels?.public_channels?.some( + (channel) => channel.threading_enabled + ); + } get directMessagesEnabled() { return this.chat.userCanAccessDirectMessages; } get shouldRenderFooter() { - return this.threadsEnabled || this.directMessagesEnabled; + return this.includeThreads || this.directMessagesEnabled; }