mirror of
https://github.com/permissionlesstech/bitchat.git
synced 2026-07-25 11:45:19 +00:00
When selectedPrivateChatPeer was migrated to a 64-hex stable Noise key after session establishment, file transfers would silently fail because: 1. Sender used raw 64-hex key, truncated to first 8 bytes by BinaryProtocol 2. Receiver's myPeerID is SHA256-fingerprint-derived (different value) 3. Recipient check failed, causing silent packet drop The fix normalizes peerID to short form (SHA256-derived 16-hex) in sendFilePrivate before constructing recipientData, ensuring the wire format matches what receivers expect. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>