Files
zulip/web/templates/reply_recipient_label.hbs
Harsh c8763f919f compose-closed-ui: Use specific button label when composing to self.
When the compose box is closed, if the selected message is for the
direct conversation with the current user, then we show "Message
yourself" as the compose reply button text.

Adds `decode_dm_recipients_user_ids_from_url` helper function to
hash_util, which parses a narrow URL for DM recipient user IDs.
Checks that "dm" operand, which should be a string of user emails,
also passes the check for all the email addresses being valid
compose recipients.

Co-Authored-By: Lauryn Menard <lauryn@zulip.com>
2025-04-28 20:50:51 -07:00

17 lines
407 B
Handlebars

{{#if is_dm_with_self}}
{{#tr}}
Message yourself
{{/tr}}
{{else}}
{{#tr}}
Message <z-recipient-label></z-recipient-label>
{{#*inline "z-recipient-label"}}
{{#if has_empty_string_topic~}}
#{{channel_name}} &gt; <span class="empty-topic-display">{{empty_string_topic_display_name}}</span>
{{~else~}}
{{label_text}}
{{~/if}}
{{~/inline}}
{{/tr}}
{{/if}}