mirror of
https://github.com/zulip/zulip.git
synced 2026-07-09 21:21:47 +08:00
Handle muting updates
(imported from commit 219a817c494f7bc27642d96f203f686df28bb361)
This commit is contained in:
parent
b4b6fa14d3
commit
a1addad450
@ -19,6 +19,11 @@ exports.persist_and_rerender = function () {
|
||||
});
|
||||
};
|
||||
|
||||
exports.handle_updates = function (muted_topics) {
|
||||
muting.set_muted_topics(muted_topics);
|
||||
current_msg_list.rerender();
|
||||
};
|
||||
|
||||
return exports;
|
||||
}());
|
||||
|
||||
|
||||
@ -881,6 +881,9 @@ function get_updates_success(data) {
|
||||
case 'alert_words':
|
||||
alert_words.words = event.alert_words;
|
||||
break;
|
||||
case 'muted_topics':
|
||||
muting_ui.handle_updates(event.muted_topics);
|
||||
break;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user