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.

desktop_notification: Add support for empty string topic.

Prakhar Pratyushf63902939f62
diff --git a/web/src/message_notifications.ts b/web/src/message_notifications.ts
index 52cfd1cfd8b..396cc61a5e3 100644
--- a/web/src/message_notifications.ts
+++ b/web/src/message_notifications.ts
@@ -156,7 +156,8 @@ function get_notification_title(
return title_prefix + " " + title_suffix;
case "stream": {
const stream_name = stream_data.get_stream_name_from_id(message.stream_id);
- title_suffix = " (#" + stream_name + " > " + message.topic + ")";
+ const topic_display_name = util.get_final_topic_display_name(message.topic);
+ title_suffix = " (#" + stream_name + " > " + topic_display_name + ")";
break;
}
}