user_topics_ui: Fix backwards setTimeout arguments.

Introduced by commit 401c8bbb21
(#27254).

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2024-05-14 12:48:07 -07:00 committed by Tim Abbott
parent f57fb0862e
commit c50b28610c
1 changed files with 2 additions and 2 deletions

View File

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