Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
minor: Explicitly handle undefined date while muting a topic.
Abhijeet Prasad Bodas5eec4b23ac90
diff --git a/static/js/muting.js b/static/js/muting.jsindex 66605edabed..5616651c26a 100644--- a/static/js/muting.js+++ b/static/js/muting.js@@ -12,9 +12,11 @@ exports.add_muted_topic = function (stream_id, topic, date_muted) {sub_dict = new FoldDict();muted_topics.set(stream_id, sub_dict);}- let time = date_muted * 1000;- if (!date_muted) {+ let time;+ if (date_muted === undefined) {time = Date.now();+ } else {+ time = date_muted * 1000;}sub_dict.set(topic, time);};