mirror of
https://github.com/mattermost/mattermost-mobile.git
synced 2026-11-06 19:00:14 +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> |
||
|---|---|---|
| .. | ||
| app.ts | ||
| calls_native.test.ts | ||
| calls_native.ts | ||
| credentials.test.ts | ||
| credentials.ts | ||
| launch.test.ts | ||
| launch.ts | ||
| managed_app.ts | ||
| push_notifications.test.ts | ||
| push_notifications.ts | ||