Skip to content

Commit

Permalink
fix: etag to null when we remove locally files
Browse files Browse the repository at this point in the history
  • Loading branch information
Aitorbp committed Apr 9, 2024
1 parent a4cda23 commit b1cad6f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ class OCFileRepository(
private fun deleteLocalFile(ocFile: OCFile, onlyFromLocalStorage: Boolean) {
localStorageProvider.deleteLocalFile(ocFile)
if (onlyFromLocalStorage) {
localFileDataSource.saveFile(ocFile.copy(storagePath = null, etagInConflict = null, lastUsage = null))
localFileDataSource.saveFile(ocFile.copy(storagePath = null, etagInConflict = null, lastUsage = null, etag = null))
} else {
localFileDataSource.deleteFile(ocFile.id!!)
}
Expand Down

0 comments on commit b1cad6f

Please sign in to comment.