mattermost-mobile-upstream/app/queries
Guillermo Vayá 7e24c0f651 fix(drafts): address Phase 1 review findings
- repairDuplicateDrafts: move fetch, grouping, winner selection, and
  deletion into a single database.write so a concurrent mutateDraftAndOutbox
  can no longer update a row after it was selected for deletion. Add a
  repair-vs-mutation concurrency test.
- Tie-break: replace localeCompare (locale collation) with explicit UTF-16
  code-unit comparison, and test mixed-case ids where the two orderings
  disagree.
- Grouping key: replace the embedded NUL delimiter (which made Git treat the
  file as binary) with JSON.stringify of the key tuple.
- Migration test: assert the 20->21 migration actually adds the three Draft
  columns and creates the DraftOutbox table with all expected columns, and
  that it performs only additive (non-destructive) steps.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-23 17:20:52 +02:00
..
app Mm 68767 zero persistence (#9803) 2026-07-16 13:55:45 +02:00
servers fix(drafts): address Phase 1 review findings 2026-07-23 17:20:52 +02:00