Authenticate private media capabilities in Noise

This commit is contained in:
jack
2026-07-26 00:12:26 +02:00
committed by jack
parent 4fc1c64ea6
commit 8b1b13842f
31 changed files with 1412 additions and 133 deletions
@@ -408,10 +408,11 @@ private extension ChatTransportEventCoordinator {
case .voiceFrame:
context.handleVoiceFramePayload(from: peerID, payload: payload, timestamp: timestamp)
case .privateFile:
case .privateFile, .authenticatedPeerState:
// BLEService validates and persists decrypted private files before
// emitting a normal `.messageReceived` event. No raw file bytes
// should cross this UI-facing typed-payload fallback.
// emitting a normal `.messageReceived` event, and consumes peer
// state inside the transport. Neither payload crosses this
// UI-facing typed-payload fallback.
break
}
}