inbox_ui: Take into account unmuted topics when filtering topics.

This commit is contained in:
Aman Agrawal 2023-09-14 07:22:18 +00:00 committed by Tim Abbott
parent fa4f9c7eff
commit 9098648d95
1 changed files with 5 additions and 0 deletions

View File

@ -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))