recipient_row: Use unmute icon for topics in muted stream.

Updated mute_or_unmute_topic to take visibility policy as parameter
and set topic visibility_policy to the passed visibility_policy.

In zulip.css, updated CSS to set opacity as per visibility_policy.

Updated click handlers for recipient_row mute/unmute icons to
work as per stream.

Fixes #25124
This commit is contained in:
Hardik Dharmani
2023-04-23 02:30:26 +05:30
committed by Tim Abbott
parent 06709bc5da
commit eee5c99cd7
5 changed files with 53 additions and 32 deletions

View File

@@ -198,9 +198,11 @@ function populate_group_from_message_container(group, message_container) {
group.stream_id = -1;
} else {
group.stream_id = sub.stream_id;
group.stream_muted = sub.is_muted;
}
group.topic_is_resolved = resolved_topic.is_resolved(group.topic);
group.topic_muted = user_topics.is_topic_muted(group.stream_id, group.topic);
group.topic_unmuted = user_topics.is_topic_unmuted(group.stream_id, group.topic);
} else if (group.is_private) {
group.pm_with_url = message_container.pm_with_url;
group.display_reply_to = message_store.get_pm_full_names(message_container.msg);