mirror of https://github.com/zulip/zulip.git
muted_topics_ui: Rename mute_topic parameter to fix shadowing bug.
This was broken by 6e6fb47e20
(#24386).
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
157b5ada90
commit
6eeeb70570
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue