Skip to content

Commit

Permalink
Dispatch client presence operations after account deletion to a dedic…
Browse files Browse the repository at this point in the history
…ated executor
  • Loading branch information
jon-signal committed Dec 21, 2023
1 parent f33a2eb commit 4d1bca2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1019,9 +1019,9 @@ private CompletableFuture<Void> delete(final Account account) {
registrationRecoveryPasswordsManager.removeForNumber(account.getNumber()))
.thenCompose(ignored -> accounts.delete(account.getUuid(), additionalWriteItems))
.thenCompose(ignored -> redisDeleteAsync(account))
.thenRun(() -> RedisOperation.unchecked(() ->
.thenRunAsync(() -> RedisOperation.unchecked(() ->
account.getDevices().forEach(device ->
clientPresenceManager.disconnectPresence(account.getUuid(), device.getId()))));
clientPresenceManager.disconnectPresence(account.getUuid(), device.getId()))), clientPresenceExecutor);
}

private String getUsernameHashAccountMapKey(byte[] usernameHash) {
Expand Down

0 comments on commit 4d1bca2

Please sign in to comment.