mirror of
https://github.com/zulip/zulip.git
synced 2025-11-17 12:21:58 +00:00
unmute_topic_banner: Fix 'unmute topic' button for empty string topic.
When message is sent in a muted topic (with automatically follow or unmute topic setting turned off), unmute topic banner is shown. Earlier, using unmute topic button was resulting in server error for empty string topic. This commit fixes the bug.
This commit is contained in:
committed by
Tim Abbott
parent
3d2fa9f788
commit
08b1ec7b55
@@ -27,6 +27,7 @@ export function notify_unmute(muted_narrow: string, stream_id: number, topic_nam
|
||||
muted_narrow,
|
||||
stream_id,
|
||||
topic_name,
|
||||
is_empty_string_topic: topic_name === "",
|
||||
classname: compose_banner.CLASSNAMES.unmute_topic_notification,
|
||||
banner_type: "",
|
||||
button_text: $t({defaultMessage: "Unmute topic"}),
|
||||
|
||||
Reference in New Issue
Block a user