diff --git a/lib/encryption/utils/key_verification.dart b/lib/encryption/utils/key_verification.dart index dacc4e5..1a376e9 100644 --- a/lib/encryption/utils/key_verification.dart +++ b/lib/encryption/utils/key_verification.dart @@ -406,7 +406,6 @@ class KeyVerification { Future maybeRequestSSSSSecrets([int i = 0]) async { final requestInterval = [10, 60]; - print('Attempting to request ssss secrets...'); if ((!encryption.crossSigning.enabled || (encryption.crossSigning.enabled && (await encryption.crossSigning.isCached()))) && @@ -414,12 +413,11 @@ class KeyVerification { (encryption.keyManager.enabled && (await encryption.keyManager.isCached())))) { // no need to request cache, we already have it - print('Not needed, we already have them'); return; } unawaited(encryption.ssss.maybeRequestAll( _verifiedDevices.whereType().toList())); - if (requestInterval.length >= i) { + if (requestInterval.length <= i) { return; } Timer(Duration(seconds: requestInterval[i]), () => maybeRequestSSSSSecrets(i + 1));