Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

user_topics_ui: Fix backwards setTimeout arguments.

Anders Kaseorgc50b28610c21
diff --git a/web/src/user_topics_ui.js b/web/src/user_topics_ui.js
index 7559c20e3c2..40415d0e20e 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) {