Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
inbox_ui: Fix mute / unmute not working.
Aman Agrawal3a2fbfc2fdb7
diff --git a/web/src/inbox_ui.js b/web/src/inbox_ui.jsindex fa9affe9908..e8f68ef571d 100644--- a/web/src/inbox_ui.js+++ b/web/src/inbox_ui.js@@ -1309,4 +1309,40 @@ export function initialize() {current_focus_id = INBOX_SEARCH_ID;compose_closed_ui.set_standard_text_for_reply_button();});++ // Mute topic in a unmuted stream+ $("body").on("click", "#inbox-list .stream_unmuted.on_hover_topic_mute", (e) => {+ e.stopPropagation();+ user_topics.set_visibility_policy_for_element(+ $(e.target),+ user_topics.all_visibility_policies.MUTED,+ );+ });++ // Unmute topic in a unmuted stream+ $("body").on("click", "#inbox-list .stream_unmuted.on_hover_topic_unmute", (e) => {+ e.stopPropagation();+ user_topics.set_visibility_policy_for_element(+ $(e.target),+ user_topics.all_visibility_policies.INHERIT,+ );+ });++ // Unmute topic in a muted stream+ $("body").on("click", "#inbox-list .stream_muted.on_hover_topic_unmute", (e) => {+ e.stopPropagation();+ user_topics.set_visibility_policy_for_element(+ $(e.target),+ user_topics.all_visibility_policies.UNMUTED,+ );+ });++ // Mute topic in a muted stream+ $("body").on("click", "#inbox-list .stream_muted.on_hover_topic_mute", (e) => {+ e.stopPropagation();+ user_topics.set_visibility_policy_for_element(+ $(e.target),+ user_topics.all_visibility_policies.INHERIT,+ );+ });}