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:
Prakhar Pratyush
2025-02-18 17:54:42 +05:30
committed by Tim Abbott
parent 3d2fa9f788
commit 08b1ec7b55
2 changed files with 2 additions and 1 deletions

View File

@@ -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"}),