From c16f3c5eca66ea09f7218821e096fb271030dc76 Mon Sep 17 00:00:00 2001 From: Aman Agrawal Date: Mon, 18 Nov 2024 20:00:31 +0530 Subject: [PATCH] message_edit: Remove incorrect `from_scroll` value. Since it is important that the message being edited is visible, it is safe to ignore `from_scroll` here which is also an unlikely possibility here. --- web/src/message_edit.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/message_edit.ts b/web/src/message_edit.ts index 01a1d0ef49..fe78b813ce 100644 --- a/web/src/message_edit.ts +++ b/web/src/message_edit.ts @@ -1272,7 +1272,7 @@ export function edit_last_sent_message(): void { return; } - message_lists.current.select_id(msg.id, {then_scroll: true, from_scroll: true}); + message_lists.current.select_id(msg.id, {then_scroll: true}); const $msg_row = message_lists.current.get_row(msg.id); if (!$msg_row) {