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.
This commit is contained in:
Aman Agrawal 2024-11-18 20:00:31 +05:30 committed by Tim Abbott
parent f4554613a0
commit c16f3c5eca
1 changed files with 1 additions and 1 deletions

View File

@ -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) {