Set hasOurOnlineAccounts to true if one of our accounts is found before signing.

This commit is contained in:
CalDescent 2022-09-24 10:23:55 +01:00
parent ea4f4d949b
commit c7cf33ef78

View File

@ -517,6 +517,8 @@ public class OnlineAccountsManager {
Set<OnlineAccountData> onlineAccounts = this.currentOnlineAccounts.computeIfAbsent(onlineAccountsTimestamp, k -> ConcurrentHashMap.newKeySet());
boolean alreadyExists = onlineAccounts.stream().anyMatch(a -> Arrays.equals(a.getPublicKey(), publicKey));
if (alreadyExists) {
this.hasOurOnlineAccounts = true;
if (remaining > 0) {
// Move on to next account
continue;