mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
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>
17 lines
407 B
Handlebars
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}} > <span class="empty-topic-display">{{empty_string_topic_display_name}}</span>
|
|
{{~else~}}
|
|
{{label_text}}
|
|
{{~/if}}
|
|
{{~/inline}}
|
|
{{/tr}}
|
|
{{/if}}
|