Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
message_header: Show `realm_empty_topic_display_name` for topic="".
Prakhar Pratyushba52ed1c884d
diff --git a/web/src/message_list_view.ts b/web/src/message_list_view.tsindex 041d5c7e5ae..2ddf65008d2 100644--- a/web/src/message_list_view.ts+++ b/web/src/message_list_view.ts@@ -102,6 +102,8 @@ export type MessageGroup = {is_archived: boolean;subscribed?: boolean;topic: string;+ topic_display_name: string;+ is_empty_string_topic: boolean;topic_is_resolved: boolean;topic_links: TopicLink[] | undefined;topic_url: string | undefined;@@ -459,6 +461,8 @@ function populate_group_from_message(const invite_only = stream_data.is_invite_only_by_stream_id(message.stream_id);const is_web_public = stream_data.is_web_public(message.stream_id);const topic = message.topic;+ const topic_display_name = util.get_final_topic_display_name(topic);+ const is_empty_string_topic = topic === "";const match_topic = util.get_match_topic(message);const stream_url = hash_util.by_stream_url(message.stream_id);const is_archived = stream_data.is_stream_archived(message.stream_id);@@ -496,6 +500,8 @@ function populate_group_from_message(date_unchanged,topic_links,topic,+ topic_display_name,+ is_empty_string_topic,recipient_bar_color,stream_privacy_icon_color,invite_only,diff --git a/web/templates/recipient_row.hbs b/web/templates/recipient_row.hbsindex 5884287bef1..1c9f34fa234 100644--- a/web/templates/recipient_row.hbs+++ b/web/templates/recipient_row.hbs@@ -27,11 +27,11 @@{{! topic link }}<a class="message_label_clickable narrows_by_topic tippy-narrow-tooltip"href="{{topic_url}}"- data-tippy-content="{{t 'Go to #{display_recipient} > {topic}' }}">+ data-tippy-content="{{t 'Go to #{display_recipient} > {topic_display_name}' }}">{{#if use_match_properties}}<span class="stream-topic-inner">{{{match_topic}}}</span>{{else}}- <span class="stream-topic-inner">{{topic}}</span>+ <span class="stream-topic-inner {{#if is_empty_string_topic}}empty-topic-display{{/if}}">{{topic_display_name}}</span>{{/if}}</a></span>