Skip to content

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

FIX: prevent unread threads notification on non threaded channels (#36719)

David Battersby9685a977865b
diff --git a/plugins/chat/assets/javascripts/discourse/models/chat-channel.js b/plugins/chat/assets/javascripts/discourse/models/chat-channel.js
index 966f668b505..d84b09547da 100644
--- a/plugins/chat/assets/javascripts/discourse/models/chat-channel.js
+++ b/plugins/chat/assets/javascripts/discourse/models/chat-channel.js
@@ -114,7 +114,7 @@ export default class ChatChannel {
}
get unreadThreadsCount() {
- return this.threadsManager.unreadThreadCount;
+ return this.threadingEnabled ? this.threadsManager.unreadThreadCount : 0;
}
get lastUnreadThreadDate() {