mirror of
				https://github.com/zulip/zulip.git
				synced 2025-10-31 03:53:50 +00:00 
			
		
		
		
	recent_topics: Handle mute/unmute update to topic.
* We don't remove topic data when it's muted. We will filter it before rendering.
This commit is contained in:
		| @@ -112,6 +112,7 @@ exports.mute = function (stream_id, topic) { | ||||
|         title_text: i18n.t("Topic muted"), | ||||
|         undo_button_text: i18n.t("Unmute"), | ||||
|     }); | ||||
|     recent_topics.update_topic_is_muted(stream_id, topic, true); | ||||
| }; | ||||
|  | ||||
| exports.unmute = function (stream_id, topic) { | ||||
| @@ -124,6 +125,7 @@ exports.unmute = function (stream_id, topic) { | ||||
|     exports.rerender(); | ||||
|     exports.persist_unmute(stream_id, topic); | ||||
|     feedback_widget.dismiss(); | ||||
|     recent_topics.update_topic_is_muted(stream_id, topic, false); | ||||
| }; | ||||
|  | ||||
| exports.toggle_mute = function (message) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user