Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
scheduled_messages: Add support for self-DM identification.
Mohammad Reza Kianifardaadf110d957
diff --git a/web/src/scheduled_messages_overlay_ui.ts b/web/src/scheduled_messages_overlay_ui.tsindex fe2e2e4a6b4..f3c9620efdf 100644--- a/web/src/scheduled_messages_overlay_ui.ts+++ b/web/src/scheduled_messages_overlay_ui.ts@@ -31,6 +31,7 @@ type ScheduledMessageRenderContext = ScheduledMessage &}| {is_stream: false;+ is_dm_with_self: boolean;formatted_send_at_time: string;recipients: string;}@@ -120,6 +121,7 @@ function format(scheduled_messages: ScheduledMessage[]): ScheduledMessageRenderCscheduled_msg_render_context = {...scheduled_msg,is_stream: false as const,+ is_dm_with_self: people.is_direct_message_conversation_with_self(scheduled_msg.to),recipients,formatted_send_at_time,};diff --git a/web/templates/scheduled_message.hbs b/web/templates/scheduled_message.hbsindex 444fca56671..f818aaf3afa 100644--- a/web/templates/scheduled_message.hbs+++ b/web/templates/scheduled_message.hbs@@ -25,7 +25,11 @@<div class="message-header-contents"><div class="message_label_clickable stream_label"><span class="private_message_header_icon"><i class="zulip-icon zulip-icon-user"></i></span>+ {{#if is_dm_with_self}}+ <span class="private_message_header_name">{{t "You" }}</span>+ {{else}}<span class="private_message_header_name">{{t "You and {recipients}" }}</span>+ {{/if}}</div>{{> scheduled_message_stream_pm_common .}}</div>