mattermost-mobile-upstream/app/managers/ephemeral_mode_manager
Guillermo Vayá 6b0618d043 feat(drafts): Phase 4.4 — wire DraftSyncManager lifecycle teardown
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>
2026-08-04 12:52:58 +02:00
..
index.test.ts Mm 68767 zero persistence (#9803) 2026-07-16 13:55:45 +02:00
index.ts feat(drafts): Phase 4.4 — wire DraftSyncManager lifecycle teardown 2026-08-04 12:52:58 +02:00