Fix: iOS share extension not detecting new devices after a while

This commit is contained in:
Leon Böttger committed 2025-11-22 16:08:11 +01:00
1 parent 734cf766d5
commit fdc19b6f62
4 files changed
+19 -17

No files matched your search

+6 -4
View File
@@ -197,14 +197,14 @@ class ReceiveModel: ObservableObject, InboundAppDelegate {
#if os(iOS)
errorVibration()
#else
DispatchQueue.main.async {
self.hideQuickDropToast()
}
#endif
controlPlusScreen(false)
ErrorAlertHandler.shared.showErrorAlert(for: device.name ?? "Android", error: error)
DispatchQueue.main.async {
self.hideQuickDropToast()
}
} else {
#if os(iOS)
@@ -288,6 +288,7 @@ class ReceiveModel: ObservableObject, InboundAppDelegate {
}
}
#if os(macOS)
func showReviewIfAppropriate(currentTransmissionCount: Int) {
// If distributed directly, do not request review here as it does not work
if pendingReview && !DistributionDetector.isDirectDistributionEnabled {
@@ -300,6 +301,7 @@ class ReceiveModel: ObservableObject, InboundAppDelegate {
}
}
}
#endif
}