Replace alert with toast view

This commit is contained in:
Leon Böttger committed 2026-02-07 15:15:26 +01:00
1 parent b55d6ff07b
commit ed20c9155e
9 files changed
+3311 -1270

No files matched your search

@@ -539,6 +539,12 @@ class InboundNearbyConnection: NearbyConnection {
let acceptAutomatically = isAuthenticated || Settings.sharedInstance.automaticallyAcceptFiles
DispatchQueue.main.async {
if !NearbyConnectionManager.shared.claimIncomingTransfer(id: self.id) {
log("[InboundNearbyConnection \(self.id)] Another transfer is active. Rejecting incoming transfer.")
self.rejectTransfer()
return
}
if acceptAutomatically {
self.delegate?.obtainedUserConsentAutomatically(transfer: metadata, device: self.remoteDeviceInfo!, connection: self)
self.submitUserConsent(accepted: true, trustDevice: false)