Skip to content

Commit

Permalink
Safeguard against active db items in fp item
Browse files Browse the repository at this point in the history
Signed-off-by: Claudio Cambra <[email protected]>
  • Loading branch information
claucambra committed May 15, 2024
1 parent b12217c commit ce9083c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/NextcloudFileProviderKit/Item/Item.swift
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ public class Item: NSObject, NSFileProviderItem {
parentItemIdentifier: NSFileProviderItemIdentifier,
ncKit: NextcloudKit
) {
self.metadata = metadata
self.metadata = ItemMetadata(value: metadata) // Safeguard against active items
self.parentItemIdentifier = parentItemIdentifier
self.ncKit = ncKit
super.init()
Expand Down

0 comments on commit ce9083c

Please sign in to comment.