recent_topics: Add filter button to show muted topics.

We don't show muted streams/topics by defualt. Only when user
turns on muted filter.
This commit is contained in:
Aman Agrawal
2020-05-29 20:52:53 +05:30
committed by Tim Abbott
parent 89fe133d2d
commit 33ace41ffe
7 changed files with 47 additions and 17 deletions

View File

@@ -346,6 +346,13 @@ exports.initialize = function () {
muting_ui.mute(stream_id, topic);
});
$('body').on('click', '.on_hover_topic_unmute', function (e) {
e.stopPropagation();
const stream_id = parseInt($(e.currentTarget).attr('data-stream-id'), 10);
const topic = $(e.currentTarget).attr('data-topic-name');
muting_ui.unmute(stream_id, topic);
});
// RECENT TOPICS
$('body').on('click', '.on_hover_topic_read', function (e) {