From c50b28610c21be49e8fcbc071f8ca2977dbdead6 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Tue, 14 May 2024 12:48:07 -0700 Subject: [PATCH] user_topics_ui: Fix backwards setTimeout arguments. Introduced by commit 401c8bbb21d16bac3cb9479e5cde5436fd8e75e2 (#27254). Signed-off-by: Anders Kaseorg --- web/src/user_topics_ui.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/user_topics_ui.js b/web/src/user_topics_ui.js index 7559c20e3c..40415d0e20 100644 --- a/web/src/user_topics_ui.js +++ b/web/src/user_topics_ui.js @@ -46,14 +46,14 @@ export function handle_topic_updates(user_topic_event) { } } - setTimeout(0, () => { + setTimeout(() => { // Defer updates for any background-rendered messages lists until the visible one has been updated. for (const list of message_lists.all_rendered_message_lists()) { if (list.preserve_rendered_state && message_lists.current !== list) { list.update_muting_and_rerender(); } } - }); + }, 0); } export function toggle_topic_visibility_policy(message) {