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