Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
unstar_topic_messages: Show realm_empty_topic_display_name for topic="".
Prakhar Pratyush9402b59a2939
diff --git a/web/src/starred_messages_ui.ts b/web/src/starred_messages_ui.tsindex df9bbe73560..f6713c96841 100644--- a/web/src/starred_messages_ui.ts+++ b/web/src/starred_messages_ui.ts@@ -13,6 +13,7 @@ import * as starred_messages from "./starred_messages.ts";import * as sub_store from "./sub_store.ts";import * as unread_ops from "./unread_ops.ts";import {user_settings} from "./user_settings.ts";+import * as util from "./util.ts";export function toggle_starred_and_update_server(message: Message): void {if (message.locally_echoed) {@@ -92,7 +93,8 @@ export function confirm_unstar_all_messages_in_topic(stream_id: number, topic: sconst html_body = render_confirm_unstar_all_messages_in_topic({stream_name,- topic,+ topic_display_name: util.get_final_topic_display_name(topic),+ is_empty_string_topic: topic === "",});confirm_dialog.launch({diff --git a/web/templates/stream_topic_widget.hbs b/web/templates/stream_topic_widget.hbsindex 3e3b8d94620..f21b47e94f7 100644--- a/web/templates/stream_topic_widget.hbs+++ b/web/templates/stream_topic_widget.hbs@@ -1,3 +1,3 @@<strong>- <span class="stream">{{stream_name}}</span> > <span class="topic white-space-preserve-wrap">{{topic}}</span>+ <span class="stream">{{stream_name}}</span> > <span class="topic white-space-preserve-wrap {{#if is_empty_string_topic}}empty-topic-display{{/if}}">{{topic_display_name}}</span></strong>