android accounts: force chats/realtime resync on account switch
This commit is contained in:
@@ -780,3 +780,9 @@
|
||||
- introduced dedicated `startup` route with session-check loader,
|
||||
- delayed auth/chats navigation until session check is finished.
|
||||
- Added safe fallback in `MainActivity` theme bootstrap to prevent crash if `ThemeRepository` injection is unexpectedly unavailable during startup.
|
||||
|
||||
### Step 114 - Multi-account switch sync fix (chats + realtime)
|
||||
- Fixed account switch flow to fully rebind app data context:
|
||||
- restart realtime socket on new active account token,
|
||||
- force refresh chats for both `archived=false` and `archived=true` right after switch.
|
||||
- Fixed navigation behavior on account switch to avoid noisy `popBackStack ... not found` and stale restored stack state.
|
||||
|
||||
Reference in New Issue
Block a user