Add method to mark action as error 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:16 +08:00
parent 3e6b20713e
commit c189f2952f
No known key found for this signature in database
GPG key ID: C839200C384636B0

View file

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