Dispatch client presence operations after account deletion to a dedicated executor

This commit is contained in:
Jon Chambers authored and Jon Chambers committed 2023-12-21 13:40:49 -05:00
1 parent f33a2eba50
commit 3c57dac93b
1 file changed
+2 -2
@@ -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) {