From 9098648d95f139e33b6f536c1777f1cee9a46b1a Mon Sep 17 00:00:00 2001 From: Aman Agrawal Date: Thu, 14 Sep 2023 07:22:18 +0000 Subject: [PATCH] inbox_ui: Take into account unmuted topics when filtering topics. --- web/src/inbox_ui.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/web/src/inbox_ui.js b/web/src/inbox_ui.js index aa1637778e..ad431a2592 100644 --- a/web/src/inbox_ui.js +++ b/web/src/inbox_ui.js @@ -483,6 +483,11 @@ function filter_should_hide_row({stream_id, topic, dm_key}) { if (sub === undefined || !sub.subscribed) { return true; } + + if (user_topics.is_topic_unmuted_or_followed(stream_id, topic)) { + return false; + } + if ( !should_include_muted() && (stream_data.is_muted(stream_id) || user_topics.is_topic_muted(stream_id, topic))