mirror of
https://github.com/mattermost/mattermost-mobile.git
synced 2026-11-07 11:20:12 +00:00
Connect the manager to the app lifecycle so late HTTP completions can never touch a destroyed database. - app/init/app.ts: initialize DraftSyncManager for every server after pending ephemeral wipes finish and before WebSocket startup. - actions/local/session/index.ts: invalidate(serverUrl) at the start of terminateSession, before client invalidation and database destruction (un-flushed outbox intent is intentionally discarded on logout). - managers/ephemeral_mode_manager: invalidate before wipeServerArtifacts and re-initialize after the server is re-added post-wipe. Checks: npm run tsc clean; eslint --quiet clean; 87 Jest tests pass across the session, ephemeral, and manager suites (no regressions). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| index.test.ts | ||
| index.ts | ||