mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-08-16 06:50:12 +00:00
MigrateToDevice.checkUserLink gated on link.trim() and stored link.trim() in every MigrationToState payload, but passed the raw, untrimmed link to MigrationFileLinkData.readFromLink. A migration link pasted (or scanned) with leading whitespace therefore passed the gate, then failed the "/_download info" parse in the core, so readFromLink returned null and the link's network configuration was silently dropped: the onion screen was skipped and migration proceeded with the device's own host modes instead of the link's. Compute the trimmed link once and use it throughout, so classification and consumption see the same string.