From 9b49909d3e77eb5ec4a4129cbccc76f2c8dffeb6 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. (cherry picked from commit aa76919ddbc4bafbb6d91d7e56d542e45af92e92) --- 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 c775ae6dbe..b147e18d49 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; }