recipient_row: Fix empty string topic display in keyword search view.

Searching for a word that appears in a message in a empty string
topic via the search box resulted in a message view where the
topic names in the recipient_row were empty string instead of
`realm_empty_topic_display_name`.

This commit fixes that bug.
This commit is contained in:
Prakhar Pratyush
2025-03-26 15:13:16 +05:30
committed by Tim Abbott
parent b0844109ca
commit 8383b11526

View File

@@ -28,7 +28,7 @@
<a class="message_label_clickable narrows_by_topic tippy-narrow-tooltip"
href="{{topic_url}}"
data-tippy-content="{{t 'Go to #{display_recipient} > {topic_display_name}' }}">
{{#if use_match_properties}}
{{#if (and use_match_properties (not is_empty_string_topic))}}
<span class="stream-topic-inner">{{{match_topic}}}</span>
{{else}}
<span class="stream-topic-inner {{#if is_empty_string_topic}}empty-topic-display{{/if}}">{{topic_display_name}}</span>