Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
inbox: Fix `is_waiting_for_revive_current_focus` not being reset.
Aman Agrawal94dc41f8cdc8
diff --git a/web/src/inbox_ui.ts b/web/src/inbox_ui.tsindex 4c6ea5d632b..5d6933bd35b 100644--- a/web/src/inbox_ui.ts+++ b/web/src/inbox_ui.ts@@ -245,8 +245,8 @@ const CONVERSATION_ID_PREFIX = "inbox-row-conversation-";const LEFT_NAVIGATION_KEYS = ["left_arrow", "vim_left"];const RIGHT_NAVIGATION_KEYS = ["right_arrow", "vim_right"];-// We wait for rows to render and restore focus before processing-// any new events.+// Used to wait for initial render to complete and set focus+// before we process events like scroll.let is_waiting_for_revive_current_focus = true;// Used to store the last scroll position of the inbox before// it is hidden to avoid scroll jumping when it is shown again.@@ -400,6 +400,7 @@ export function hide(): void {return;}+ is_waiting_for_revive_current_focus = true;if (inbox_util.is_channel_view()) {save_channel_view_state();} else {