recipient_row: Fix data-topic-name for general chat.

Since we know it's a topic header, we don't need a conditional
here. And the one we'd had didn't distinguish `undefined` from `""`,
and thus broke these controls for general chat.
This commit is contained in:
Tim Abbott
2025-07-09 13:33:43 -07:00
parent 0ecb8269d0
commit 911fca7f80

View File

@@ -1,5 +1,5 @@
{{#if is_stream}}
<div class="message_header message_header_stream right_part" data-stream-id="{{stream_id}}" {{#if topic}}data-topic-name="{{topic}}"{{/if}}>
<div class="message_header message_header_stream right_part" data-stream-id="{{stream_id}}" data-topic-name="{{topic}}">
<div class="message-header-contents" style="background: {{recipient_bar_color}};">
{{! stream link }}
<a class="message_label_clickable narrows_by_recipient stream_label tippy-narrow-tooltip"