marinofaggiana 4 жил өмнө
parent
commit
9e654061c3

+ 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 || result.date != metadata.date) {
+                        if result.status == k_metadataStatusNormal && (result.etag != metadata.etag || result.fileNameView != metadata.fileNameView || result.date != metadata.date || result.livePhoto != metadata.livePhoto) {
                             ocIdsUdate.append(metadata.ocId)
                             realm.add(metadata, update: .all)
                         }