Only fetch last-resort PQ keys for accounts with linked devices
This commit is contained in:
parent
cdb651b68f
commit
26b3b75054
|
@ -76,6 +76,7 @@ public class RemoveLinkedDevicesWithoutPqKeysCommand extends AbstractSinglePassC
|
|||
final KeysManager keysManager = getCommandDependencies().keysManager();
|
||||
|
||||
accounts
|
||||
.filter(account -> account.getDevices().size() > 1)
|
||||
.flatMap(
|
||||
account -> Mono.fromFuture(() -> keysManager.getPqEnabledDevices(account.getIdentifier(IdentityType.ACI)))
|
||||
.retryWhen(Retry.backoff(maxRetries, Duration.ofSeconds(1))
|
||||
|
|
Loading…
Reference in New Issue