Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
inbox_row: Show `realm_empty_topic_display_name` for empty topic name.
Prakhar Pratyush91899e627e4b
diff --git a/web/src/inbox_ui.ts b/web/src/inbox_ui.tsindex aacd0364a1b..2d8d77b3587 100644--- a/web/src/inbox_ui.ts+++ b/web/src/inbox_ui.ts@@ -110,6 +110,8 @@ type TopicContext = {is_topic: boolean;stream_id: number;topic_name: string;+ topic_display_name: string;+ is_empty_string_topic: boolean;unread_count: number;conversation_key: string;topic_url: string;@@ -126,6 +128,8 @@ const topic_context_properties: (keyof TopicContext)[] = ["is_topic","stream_id","topic_name",+ "topic_display_name",+ "is_empty_string_topic","unread_count","conversation_key","topic_url",@@ -438,6 +442,8 @@ function format_topic(is_topic: true,stream_id,topic_name: topic,+ topic_display_name: util.get_final_topic_display_name(topic),+ is_empty_string_topic: topic === "",unread_count: topic_unread_count,conversation_key: get_topic_key(stream_id, topic),topic_url: hash_util.by_stream_topic_url(stream_id, topic),diff --git a/web/templates/inbox_view/inbox_row.hbs b/web/templates/inbox_view/inbox_row.hbsindex 1005f025440..3003031621b 100644--- a/web/templates/inbox_view/inbox_row.hbs+++ b/web/templates/inbox_view/inbox_row.hbs@@ -28,7 +28,7 @@{{!-- Invisible user circle element for alignment of topic text with DM user name --}}<span class="user-circle-active user-circle invisible"></span><div class="inbox-topic-name">- <a tabindex="-1" href="{{topic_url}}">{{topic_name}}</a>+ <a tabindex="-1" href="{{topic_url}}" {{#if is_empty_string_topic}}class="empty-topic-display"{{/if}}>{{topic_display_name}}</a></div><span class="unread_mention_info tippy-zulip-tooltip{{#unless mention_in_unread}}hidden{{/unless}}"