Skip to content

Commit

Permalink
Remove unneecessary deletion call (#5410)
Browse files Browse the repository at this point in the history
Co-authored-by: Aleksandar Apostolov <[email protected]>
  • Loading branch information
JcMinarro and aleksandar-apostolov authored Sep 19, 2024
1 parent a046c05 commit 47adb94
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,6 @@ public class UploadAttachmentsWorker(
} ?: SyncStatus.FAILED_PERMANENTLY,
)
channelStateLogic?.upsertMessage(updatedMessage)
// RepositoryFacade::insertMessage is implemented as upsert, therefore we need to delete the message first
messageRepository.deleteChannelMessage(updatedMessage)
messageRepository.insertMessage(updatedMessage)
AttachmentsUploadStates.updateMessageAttachments(updatedMessage)
}
Expand Down

0 comments on commit 47adb94

Please sign in to comment.