From 4ff3359badf8808d53734b83a08e4223ab9b80eb Mon Sep 17 00:00:00 2001 From: Alya Abbott Date: Mon, 25 Nov 2024 12:00:31 -0800 Subject: [PATCH] help and modals: Describe "edit your last message" consistently. --- help/keyboard-shortcuts.md | 5 +++-- web/src/message_edit.ts | 2 +- web/templates/confirm_dialog/confirm_edit_messages.hbs | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/help/keyboard-shortcuts.md b/help/keyboard-shortcuts.md index c6c025e7db..beb17a682d 100644 --- a/help/keyboard-shortcuts.md +++ b/help/keyboard-shortcuts.md @@ -164,8 +164,9 @@ in the Zulip app to add more to your repertoire as needed. ## Message actions -* **Edit last message**: — Open the last - editable message in the current view (if any). +* **Edit your last message**: — Scroll to the + most recent message you are allowed to edit in the current view, and open it + for editing. If there are no messages you can edit, nothing happens. ### For a selected message (outlined in blue) diff --git a/web/src/message_edit.ts b/web/src/message_edit.ts index 9da77778a1..b6ece78350 100644 --- a/web/src/message_edit.ts +++ b/web/src/message_edit.ts @@ -1255,7 +1255,7 @@ export function maybe_show_edit($row: JQuery, id: number): void { function warn_user_about_unread_msgs(last_sent_msg_id: number, num_unread: number): void { confirm_dialog.launch({ - html_heading: $t({defaultMessage: "Edit last sent message"}), + html_heading: $t({defaultMessage: "Edit your last message?"}), html_body: render_confirm_edit_messages({ num_unread, }), diff --git a/web/templates/confirm_dialog/confirm_edit_messages.hbs b/web/templates/confirm_dialog/confirm_edit_messages.hbs index 7cc6a83984..429f46105a 100644 --- a/web/templates/confirm_dialog/confirm_edit_messages.hbs +++ b/web/templates/confirm_dialog/confirm_edit_messages.hbs @@ -1,5 +1,5 @@

{{#tr}} - Scrolling to the last message you sent will mark {num_unread} unread messages as read. Would you like to scroll to that message and edit it? + Scrolling to your last message will mark {num_unread} unread messages as read. Would you like to scroll to that message and edit it? {{/tr}}