Handle muting updates

(imported from commit 219a817c494f7bc27642d96f203f686df28bb361)
This commit is contained in:
Steve Howell 2013-09-10 18:36:21 -04:00
parent b4b6fa14d3
commit a1addad450
2 changed files with 8 additions and 0 deletions

View File

@ -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;
}());

View File

@ -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;
}
});