mattermost-mobile-upstream/app/init
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
..
app.ts feat(drafts): Phase 4.4 — wire DraftSyncManager lifecycle teardown 2026-08-04 12:52:58 +02:00
calls_native.test.ts Receive Mattermost Calls through iOS native incoming-call UI (#9780) 2026-06-16 12:08:14 -03:00
calls_native.ts [MM-69457] Stop logging PII in exportable app logs (#9884) 2026-07-02 12:19:04 +02:00
credentials.test.ts fix: prevent removal of pre-auth secret on logout (#9411) 2026-01-27 15:52:37 +01:00
credentials.ts fix: prevent removal of pre-auth secret on logout (#9411) 2026-01-27 15:52:37 +01:00
launch.test.ts Mm 68767 zero persistence (#9803) 2026-07-16 13:55:45 +02:00
launch.ts Mm 68767 zero persistence (#9803) 2026-07-16 13:55:45 +02:00
managed_app.ts Fix Regressions (#9808) 2026-06-04 06:54:40 +08:00
push_notifications.test.ts Mm 68292 receive push wipe (#9822) 2026-06-25 10:42:30 +02:00
push_notifications.ts [MM-69457] Stop logging PII in exportable app logs (#9884) 2026-07-02 12:19:04 +02:00