mattermost-mobile-upstream/app/actions/remote/entry
Guillermo Vayá d7b455fec8 fix(drafts): wake the coordinator on local mutations + init on DB-recreation paths (#7, #11)
- #7 wake: every committed portable Draft mutation (updateDraftMessage,
  updateDraftFile, removeDraftFile, addFilesToDraft, updateDraftPriority,
  updateDraftBoRConfig, removeDraft) now calls DraftSyncManager.wake(serverUrl) on
  its success path so newly-enqueued outbox work drains promptly instead of
  waiting for a timer. Device-local markdown-metadata and error/no-op paths do
  not wake.
- #11 lifecycle: login.ts initializes DraftSyncManager for a freshly added server
  (after EphemeralModeManager.addServer, before WebSocket startup). refresh.ts
  applyPersistenceModeChange invalidates before the persistence-mode DB wipe and
  re-initializes after the database is recreated (before WebSocket startup), so a
  late HTTP completion can never touch a destroyed/recreated database.

Checks: npm run tsc clean; eslint --quiet clean; local-draft + refresh suites pass
(incl. an invalidate<wipe<initialize<createClient ordering assertion).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-08-05 12:19:51 +02:00
..
app.test.ts Mm 68767 zero persistence (#9803) 2026-07-16 13:55:45 +02:00
app.ts Mm 68767 zero persistence (#9803) 2026-07-16 13:55:45 +02:00
common.test.ts Receive Mattermost Calls through iOS native incoming-call UI (#9780) 2026-06-16 12:08:14 -03:00
common.ts Receive Mattermost Calls through iOS native incoming-call UI (#9780) 2026-06-16 12:08:14 -03:00
deferred.test.ts Role permissions are not updated on app launch (#9383) 2026-02-13 12:43:14 +01:00
deferred.ts Role permissions are not updated on app launch (#9383) 2026-02-13 12:43:14 +01:00
index.ts Migrate from RNN to Expo router (#9402) 2026-05-13 17:44:55 +08:00
login.ts fix(drafts): wake the coordinator on local mutations + init on DB-recreation paths (#7, #11) 2026-08-05 12:19:51 +02:00
notification.test.ts Mm 68767 zero persistence (#9803) 2026-07-16 13:55:45 +02:00
notification.ts Mm 68767 zero persistence (#9803) 2026-07-16 13:55:45 +02:00