message_scroll: Remove unnecessary `setTimeout` call.

Since `scroll_finished` is already called post render and we
don't have to wait for anything rendering before calling
`unread_ops.process_visible`, we can just directly call it.
This commit is contained in:
Aman Agrawal 2024-10-23 07:10:15 +00:00 committed by Tim Abbott
parent 6a4c4195f5
commit 70d9d8c09e
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ export function scroll_finished() {
// enter the screen and become read. Calling
// unread_ops.process_visible will update necessary
// data structures and DOM elements.
setTimeout(unread_ops.process_visible, 0);
unread_ops.process_visible();
} else {
message_scroll_state.set_update_selection_on_next_scroll(true);
}