Skip to content

Commit

Permalink
fix: Added condition if file is changed locally
Browse files Browse the repository at this point in the history
  • Loading branch information
Aitorbp committed Apr 19, 2024
1 parent 39487a8 commit 5f3759d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ class OCFileRepository(
if (remoteFolder.isAvailableOffline) AVAILABLE_OFFLINE_PARENT else NOT_AVAILABLE_OFFLINE

})
} else if (localChildToSync.etag != remoteChild.etag) {
} else if (localChildToSync.etag != remoteChild.etag || localChildToSync.localModificationTimestamp > remoteChild.lastSyncDateForData!!) {
// File exists in the database, we need to check several stuff.
folderContentUpdated.add(
remoteChild.apply {
Expand Down

0 comments on commit 5f3759d

Please sign in to comment.