Skip to content

Commit

Permalink
Remove unnecessary MessagesManager#clear with account’s PNI
Browse files Browse the repository at this point in the history
  • Loading branch information
eager-signal authored and jon-signal committed Oct 10, 2024
1 parent 8c30a35 commit 5d8b566
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1210,7 +1210,6 @@ private CompletableFuture<Void> delete(final Account account) {
keysManager.deleteSingleUsePreKeys(account.getUuid()),
keysManager.deleteSingleUsePreKeys(account.getPhoneNumberIdentifier()),
messagesManager.clear(account.getUuid()),
messagesManager.clear(account.getPhoneNumberIdentifier()),
profilesManager.deleteAll(account.getUuid()),
registrationRecoveryPasswordsManager.removeForNumber(account.getNumber()))
.thenCompose(ignored -> accounts.delete(account.getUuid(), additionalWriteItems))
Expand Down

0 comments on commit 5d8b566

Please sign in to comment.