mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-28 11:48:56 +03:00
Fix root cause of threading issues with metadata updates
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
7c8aab38d2
commit
1a48e4e06e
1 changed files with 2 additions and 2 deletions
|
@ -157,7 +157,7 @@ class NextcloudFilesDatabaseManager : NSObject {
|
|||
if existingMetadata.status == NextcloudItemMetadataTable.Status.normal.rawValue &&
|
||||
!existingMetadata.isInSameRemoteState(updatedMetadata) {
|
||||
|
||||
returningUpdatedMetadatas.append(updatedMetadata)
|
||||
returningUpdatedMetadatas.append(NextcloudItemMetadataTable(value: updatedMetadata))
|
||||
databaseToWriteTo.add(updatedMetadata, update: .all)
|
||||
|
||||
NSLog("""
|
||||
|
@ -178,7 +178,7 @@ class NextcloudFilesDatabaseManager : NSObject {
|
|||
}
|
||||
|
||||
} else { // This is a new metadata
|
||||
returningNewMetadatas.append(updatedMetadata)
|
||||
returningNewMetadatas.append(NextcloudItemMetadataTable(value: updatedMetadata))
|
||||
databaseToWriteTo.add(updatedMetadata, update: .all)
|
||||
|
||||
NSLog("""
|
||||
|
|
Loading…
Reference in a new issue