mirror of
https://github.com/mattermost/mattermost-mobile.git
synced 2026-11-09 04:30:14 +00:00
- #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> |
||
|---|---|---|
| .. | ||
| app.test.ts | ||
| app.ts | ||
| common.test.ts | ||
| common.ts | ||
| deferred.test.ts | ||
| deferred.ts | ||
| index.ts | ||
| login.ts | ||
| notification.test.ts | ||
| notification.ts | ||