Skip to content

Commit

Permalink
Don't update items version when saving a file that exists remotely (z…
Browse files Browse the repository at this point in the history
  • Loading branch information
mvasilak committed Mar 21, 2024
1 parent 0cc6016 commit f1b41d9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ZShare/ViewModels/ExtensionViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1125,8 +1125,7 @@ final class ExtensionViewModel {

do {
let request = MarkAttachmentUploadedDbRequest(libraryId: data.libraryId, key: data.attachment.key, version: version)
let request2 = UpdateVersionsDbRequest(version: version, libraryId: data.libraryId, type: .object(.item))
try dbStorage.perform(writeRequests: [request, request2], on: self.backgroundQueue)
try dbStorage.perform(request: request, on: self.backgroundQueue)
return Single.just(())
} catch let error {
return Single.error(error)
Expand Down

0 comments on commit f1b41d9

Please sign in to comment.