mirror of
https://github.com/leonboe1/QuickDrop.git
synced 2026-11-19 21:06:10 +00:00
Always allow incoming notifications
This commit is contained in:
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)")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user