Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
message_list_data: Use common logic for filtering msgs `in-home`.
Aman Agrawal23cd8b8564ae
diff --git a/web/src/message_list_data.ts b/web/src/message_list_data.tsindex fa80d6c203e..35982525e1c 100644--- a/web/src/message_list_data.ts+++ b/web/src/message_list_data.ts@@ -221,6 +221,12 @@ export class MessageListData {if (message.type !== "stream") {return true;}++ // TODO: Widen this if check to include other narrows as well.+ if (this.filter.is_in_home()) {+ return user_topics.is_topic_visible_in_home(message.stream_id, message.topic);+ }+return (!user_topics.is_topic_muted(message.stream_id, message.topic) || message.mentioned);