Browse Source

update metadata

marinofaggiana 4 years ago
parent
commit
b09238c64d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      iOSClient/Database/NCManageDatabase.swift

+ 1 - 1
iOSClient/Database/NCManageDatabase.swift

@@ -1958,7 +1958,7 @@ class NCManageDatabase: NSObject {
                     
                     if let result = metadatasResult.first(where: { $0.ocId == metadata.ocId }) {
                         // update
-                        if result.status == k_metadataStatusNormal && (result.etag != metadata.etag || result.fileNameView != metadata.fileNameView) {
+                        if result.status == k_metadataStatusNormal && (result.etag != metadata.etag || result.fileNameView != metadata.fileNameView || result.date != metadata.date) {
                             ocIdsUdate.append(metadata.ocId)
                             realm.add(metadata, update: .all)
                         }