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 10, 2024
1 parent d75ebea commit b4377ce
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 b4377ce

Please sign in to comment.