mirror of
https://github.com/zulip/zulip.git
synced 2026-06-30 21:11:04 +08:00
message_list_data: Use common logic for filtering msgs in-home.
This commit is contained in:
parent
dcdd54fcea
commit
23cd8b8564
@ -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
|
||||
);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user