mattermost-mobile-upstream/types
Guillermo Vayá 354e956f43 feat(drafts): Phase 1 synchronized-drafts storage foundation
Adds the durable storage foundation for synchronized drafts (mobile-only,
no network behavior yet):

- Fix draft batch dedup in handleDraft to key by the composite
  (channel_id, root_id) instead of channel_id alone, so a channel draft
  and its thread reply drafts in the same batch no longer collapse.
- Add Draft columns: server_update_at (nullable ancestry hint, not a
  revision), props (JSON), file_ids (JSON portable server attachment IDs).
- Add the DraftOutbox table (one durable pending op per draft key) with
  operation/status const objects, generation, keep_local, retry fields,
  and a deleted_fingerprint column for delete-vs-newer-write disambiguation.
- Add buildDraftOutboxId, the serialized mutateDraftAndOutbox writer
  primitive (enters database.write before querying both tables, commits one
  batch), and deterministic repairDuplicateDrafts.
- Bump server schema 20 -> 21 with addColumns + createTable migration;
  register schema/model in the database managers, mocks, types, and docs.

Tests: composite-key survival, concurrent-mutation serialization, batch
failure atomicity, duplicate repair winner, model round-trip / migration
compatibility, and migration definition.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-23 16:18:48 +02:00
..
api feat(drafts): Phase 1 synchronized-drafts storage foundation 2026-07-23 16:18:48 +02:00
components Migrate from RNN to Expo router (#9402) 2026-05-13 17:44:55 +08:00
credentials MM-65085: Support Pre Shared Password on server connect (#9082) 2025-09-01 11:24:15 +02:00
crt
database feat(drafts): Phase 1 synchronized-drafts storage foundation 2026-07-23 16:18:48 +02:00
global Migrate from RNN to Expo router (#9402) 2026-05-13 17:44:55 +08:00
launch Easy Login (#9261) 2025-11-20 12:38:06 +01:00
modules fix: app bugs surfaced by Detox RF migration (#9789) 2026-06-09 13:25:42 +05:30
screens Report a problem not redirect to default email application (#9703) 2026-05-14 09:10:39 -04:00
security_manager feat(iOS): Add Microsoft Intune MAM integration with multi-server support (#9312) 2025-12-10 13:07:28 +02:00
utils Refactor Open Profile (#8746) 2025-05-13 17:07:13 +02:00
vendor Mobile-side for MM-65084 (#9115) 2025-09-29 14:29:37 -07:00