From e5a2c7057d0696f8fd3ce7a37985e73adccdc846 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20Coye=20de=20Brune=CC=81lis?= Date: Tue, 27 Feb 2024 17:08:46 +0100 Subject: [PATCH] fix: Make sure no PausedNotification is produced by the FileProvider --- .../Data/UploadQueue/Queue/UploadQueue+Notifications.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/kDriveCore/Data/UploadQueue/Queue/UploadQueue+Notifications.swift b/kDriveCore/Data/UploadQueue/Queue/UploadQueue+Notifications.swift index 51451cbed..3ccc113c7 100644 --- a/kDriveCore/Data/UploadQueue/Queue/UploadQueue+Notifications.swift +++ b/kDriveCore/Data/UploadQueue/Queue/UploadQueue+Notifications.swift @@ -42,6 +42,11 @@ extension UploadQueue: UploadNotifiable { public func sendPausedNotificationIfNeeded() { Log.uploadQueue("sendPausedNotificationIfNeeded") + guard appContextService.context != .fileProviderExtension else { + Log.uploadQueue("\(#function) disabled in FileProviderExtension", level: .error) + return + } + serialQueue.async { [weak self] in guard let self else { return } if !pausedNotificationSent {