Persist muting preferences to the back end

(imported from commit db2d4362a0601f35a75b798cf6945556e44532fb)
This commit is contained in:
Steve Howell
2013-09-10 14:07:24 -04:00
parent b7ef86bc34
commit b4b6fa14d3
4 changed files with 28 additions and 3 deletions

View File

@@ -385,7 +385,7 @@ exports.register_click_handlers = function () {
var topic = $(e.currentTarget).data('msg-topic');
popovers.hide_actions_popover();
muting.mute_topic(stream, topic);
current_msg_list.rerender();
muting_ui.persist_and_rerender();
e.stopPropagation();
e.preventDefault();
});
@@ -395,7 +395,7 @@ exports.register_click_handlers = function () {
var topic = $(e.currentTarget).data('msg-topic');
popovers.hide_actions_popover();
muting.unmute_topic(stream, topic);
current_msg_list.rerender();
muting_ui.persist_and_rerender();
e.stopPropagation();
e.preventDefault();
});