From aa76919ddbc4bafbb6d91d7e56d542e45af92e92 Mon Sep 17 00:00:00 2001 From: Aman Agrawal Date: Sun, 4 Feb 2024 02:25:42 +0000 Subject: [PATCH] compose_actions: Fix incorrect condition. This was introduced in #28767 with the intention to skip scrolling the selected message. So, the actual bug that the PR fixed would have been just fixed by opening the compose box early. --- web/src/compose_actions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/compose_actions.js b/web/src/compose_actions.js index a4eabbf578..27f596c722 100644 --- a/web/src/compose_actions.js +++ b/web/src/compose_actions.js @@ -126,7 +126,7 @@ export function complete_starting_tasks(msg_type, opts) { } export function maybe_scroll_up_selected_message(opts) { - if (!opts.skip_scrolling_selected_message) { + if (opts.skip_scrolling_selected_message) { return; }