mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 04:53:36 +00:00
@@ -1,6 +1,9 @@
|
||||
set_global('page_params', {
|
||||
domain: 'zulip.com'
|
||||
});
|
||||
add_dependencies({
|
||||
unread: 'js/unread.js'
|
||||
});
|
||||
|
||||
var muting = require('js/muting.js');
|
||||
|
||||
|
||||
@@ -8,7 +8,8 @@
|
||||
// dependencies (except _).
|
||||
|
||||
add_dependencies({
|
||||
muting: 'js/muting.js'
|
||||
muting: 'js/muting.js',
|
||||
unread: 'js/unread.js'
|
||||
});
|
||||
|
||||
var stream_data = require('js/stream_data.js');
|
||||
|
||||
@@ -11,6 +11,7 @@ exports.mute_topic = function (stream, topic) {
|
||||
muted_topics.set(stream, sub_dict);
|
||||
}
|
||||
sub_dict.set(topic, true);
|
||||
unread.update_unread_counts();
|
||||
};
|
||||
|
||||
exports.unmute_topic = function (stream, topic) {
|
||||
@@ -18,6 +19,7 @@ exports.unmute_topic = function (stream, topic) {
|
||||
if (sub_dict) {
|
||||
sub_dict.del(topic);
|
||||
}
|
||||
unread.update_unread_counts();
|
||||
};
|
||||
|
||||
exports.is_topic_muted = function (stream, topic) {
|
||||
|
||||
Reference in New Issue
Block a user