Refactor UIAlertController Logic

This commit is contained in:
Leon Böttger committed 2025-11-10 19:44:15 +01:00
1 parent 21f0f865b6
commit 4e73fced74
8 files changed
+63 -42

No files matched your search

@@ -589,6 +589,13 @@ class InboundNearbyConnection: NearbyConnection {
if storeInTemp {
log("[InboundNearbyConnection \(self.id)] File transfer restrictions detected, storing files in temporary directory.")
delegate?.showPlusScreen()
#if os(iOS)
// Continue transfer for macOS only
// On iOS, the transfer should be cancelled by user
rejectTransfer()
return
#endif
}
do {
+1 -7
View File
@@ -111,14 +111,8 @@ extension String {
public func fullVersion() -> Bool {
#if os(macOS)
// Enable full functionality if app distributed directly
return Settings.shared.gotPlus || DistributionDetector.isDirectDistributionEnabled
#else
// iOS
return true
#endif
return Settings.shared.gotPlus || DistributionDetector.isDirectDistributionEnabled
}