Skip to content

Commit

Permalink
Store share permissions cloud mesh
Browse files Browse the repository at this point in the history
Signed-off-by: Claudio Cambra <[email protected]>
  • Loading branch information
claucambra committed Jan 22, 2025
1 parent 001d0c6 commit f3b284b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Sources/NextcloudFileProviderKit/Metadata/ItemMetadata.swift
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,14 @@ public class RealmItemMetadata: Object, ItemMetadata {
}
@Persisted public var sharePermissionsCollaborationServices: Int = 0
// TODO: Find a way to compare these two below in remote state check
public var sharePermissionsCloudMesh = [String]()
@Persisted public var storedSharePermissionsCloudMesh = List<String>()
public var sharePermissionsCloudMesh: [String] {
get { storedSharePermissionsCloudMesh.map { $0 } }
set {
storedSharePermissionsCloudMesh = List<String>()
storedSharePermissionsCloudMesh.append(objectsIn: newValue)
}
}
@Persisted public var size: Int64 = 0
@Persisted public var status: Int = 0
@Persisted public var storedTags = List<String>()
Expand Down

0 comments on commit f3b284b

Please sign in to comment.