Better error message for failed signature check, throw error on canceled file transfer

This commit is contained in:
Leon Böttger committed 2025-07-28 14:10:16 +02:00
1 parent f18649b959
commit ddd9a32023
4 files changed
+227 -7

No files matched your search

@@ -101,6 +101,8 @@ class InboundNearbyConnection: NearbyConnection {
override func processTransferSetupFrame(_ frame: Sharing_Nearby_Frame) throws {
if frame.hasV1 && frame.v1.hasType, case .cancel = frame.v1.type {
self.lastError = NearbyError.canceled(reason: .userCanceled)
self.cancelled = true
log("[InboundNearbyConnection] Transfer canceled")
try sendDisconnectionAndDisconnect()
return