Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

muted_topics_ui: Rename mute_topic parameter to fix shadowing bug.

Anders Kaseorg6eeeb705701a
diff --git a/web/src/muted_topics_ui.js b/web/src/muted_topics_ui.js
index e57f6080201..514f8533493 100644
--- a/web/src/muted_topics_ui.js
+++ b/web/src/muted_topics_ui.js
@@ -113,10 +113,10 @@ export function toggle_topic_mute(message) {
}
}
-export function mute_or_unmute_topic($elt, mute_topic) {
+export function mute_or_unmute_topic($elt, mute) {
const stream_id = Number.parseInt($elt.attr("data-stream-id"), 10);
const topic = $elt.attr("data-topic-name");
- if (mute_topic) {
+ if (mute) {
mute_topic(stream_id, topic);
} else {
unmute_topic(stream_id, topic);