Skip to content

Commit

Permalink
fix: Make sure no PausedNotification is produced by the FileProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
adrien-coye committed Feb 27, 2024
1 parent fc0af91 commit e5a2c70
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit e5a2c70

Please sign in to comment.