Commit Graph
5 Commits
Author SHA1 Message Date
jackandClaude Opus 4.8 14749e9454 Cap only migration-fallback media at Android's 256 fragments
The private-media preflight applied Android's 256-fragment reassembly
cap to every directed media send, including the encrypted 0x20 path.
That regressed iOS→iOS private photos in the ~120-512 KiB range, which
work today: iOS reassembles up to 10,000 fragments and main compresses
images to <=512 KiB.

Encrypted private media is only ever sent to peers that advertised the
.privateMedia capability (modern clients with the full receiver
ceiling); current Android receives private media exclusively over the
directed raw-file migration fallback. Restrict the 256-fragment cap to
that fileTransfer fallback path so capable peers use the normal ceiling.
Leaves a TODO(#1434) to negotiate an explicit per-peer fragment limit
for a future Android client that adopts 0x20 but keeps a small
reassembler.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-26 10:53:25 +02:00
jackandjack 301144289c Discard private-media callbacks during panic 2026-07-26 10:47:23 +02:00
jack e1a53bcb3b Authenticate private media capabilities in Noise 2026-07-26 10:47:23 +02:00
jack a1bdfd10e5 Harden private media migration compatibility 2026-07-26 10:47:23 +02:00
jack df7a8f7ddd Encrypt private media before fragmentation 2026-07-26 10:47:23 +02:00