Dispatch client presence operations after account deletion to a dedicated executor

This commit is contained in:
Jon Chambers 2023-12-21 13:33:07 -05:00 committed by Jon Chambers
parent f33a2eba50
commit 4d1bca2d97
1 changed files with 2 additions and 2 deletions

View File

@ -1019,9 +1019,9 @@ public class AccountsManager {
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) {