Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
message_feed_ui: Remove "Mute topic" from message action menu.
sayamsamal86607ba31845
diff --git a/static/js/popovers.js b/static/js/popovers.jsindex 710c0f205b1..35773919dc8 100644--- a/static/js/popovers.js+++ b/static/js/popovers.js@@ -470,11 +470,7 @@ export function toggle_actions_popover(element, id) {editability_menu_item = $t({defaultMessage: "View source"});}const topic = message.topic;- const can_mute_topic =- message.stream &&- topic &&- !muted_topics.is_topic_muted(message.stream_id, topic) &&- not_spectator;+const can_unmute_topic =message.stream && topic && muted_topics.is_topic_muted(message.stream_id, topic);@@ -518,7 +514,6 @@ export function toggle_actions_popover(element, id) {topic,use_edit_icon,editability_menu_item,- can_mute_topic,can_unmute_topic,should_display_collapse,should_display_uncollapse,@@ -1238,16 +1233,6 @@ export function register_click_handlers() {e.preventDefault();});- $("body").on("click", ".popover_mute_topic", (e) => {- const stream_id = Number.parseInt($(e.currentTarget).attr("data-msg-stream-id"), 10);- const topic = $(e.currentTarget).attr("data-msg-topic");-- hide_actions_popover();- muted_topics_ui.mute_topic(stream_id, topic);- e.stopPropagation();- e.preventDefault();- });-$("body").on("click", ".popover_unmute_topic", (e) => {const stream_id = Number.parseInt($(e.currentTarget).attr("data-msg-stream-id"), 10);const topic = $(e.currentTarget).attr("data-msg-topic");diff --git a/static/templates/actions_popover_content.hbs b/static/templates/actions_popover_content.hbsindex 73baa76229b..73dcc77595d 100644--- a/static/templates/actions_popover_content.hbs+++ b/static/templates/actions_popover_content.hbs@@ -69,14 +69,6 @@</a></li>{{/if}}- {{#if can_mute_topic}}- <li>- <a class="popover_mute_topic" data-msg-stream-id="{{stream_id}}" data-msg-topic="{{topic}}" tabindex="0">- <i class="fa fa-bell-slash" aria-hidden="true"></i>- {{#tr}}Mute the topic <b>{topic}</b>{{/tr}} <span class="hotkey-hint">(M)</span>- </a>- </li>- {{/if}}{{#if can_unmute_topic}}<li>