Always allow incoming notifications

This commit is contained in:
Leon Böttger authored and Leon Böttger committed 2026-03-13 19:09:03 +01:00
1 parent 767a5c5706
commit fd1dfb4f4a
3 files changed
+11 -2

No files matched your search

@@ -688,7 +688,7 @@ class InboundNearbyConnection: NearbyConnection {
return
}
if isFileTransferRestricted() {
if !isMirroredNotificationTransfer && isFileTransferRestricted() {
log("[InboundNearbyConnection \(self.id)] File transfer restrictions detected.")
delegate?.showPlusScreen()
rejectTransfer()
@@ -131,7 +131,11 @@ final class MirroredNotificationPresenter {
if let error = error {
log("[MirroredNotificationPresenter] Could not post notification: \(error.localizedDescription)")
} else {
log("[MirroredNotificationPresenter] Posted mirrored notification (\(identifier))")
DispatchQueue.main.async {
Settings.sharedInstance.incomingNotificationCount += 1
let count = Settings.sharedInstance.incomingNotificationCount
log("[MirroredNotificationPresenter] Posted mirrored notification (\(identifier)). Current count: \(count)")
}
}
}
}