Add method to remove finished sync action in FileProviderExt

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Claudio Cambra 2024-07-16 19:18:25 +08:00
parent c189f2952f
commit 3f3f478f6a
No known key found for this signature in database
GPG key ID: C839200C384636B0

View file

@ -83,6 +83,13 @@ import OSLog
updatedSyncStateReporting(oldActions: oldActions) updatedSyncStateReporting(oldActions: oldActions)
} }
func removeSyncAction(_ actionId: UUID) {
let oldActions = syncActions
syncActions.remove(actionId)
errorActions.remove(actionId)
updatedSyncStateReporting(oldActions: oldActions)
}
// MARK: - NSFileProviderReplicatedExtension protocol methods // MARK: - NSFileProviderReplicatedExtension protocol methods
func item( func item(