Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

unread: Use message type instead of checking stream_id.

evykassirerf15a68791676
diff --git a/web/src/unread.js b/web/src/unread.js
index 3d9bf98427c..ecf10b221f6 100644
--- a/web/src/unread.js
+++ b/web/src/unread.js
@@ -759,7 +759,7 @@ export function update_message_for_mention(message, content_edited = false) {
if (is_unmuted_mention || message.mentioned_me_directly) {
unread_mentions_counter.add(message.id);
add_message_to_unread_mention_topics(message.id);
- if (!message.stream_id) {
+ if (message.type === "private") {
direct_message_with_mention_count.add(message.id);
}
} else {