From 221d6c275be456807350ab57bead3f6145a7723a Mon Sep 17 00:00:00 2001 From: Sorunome Date: Fri, 12 Jun 2020 17:32:35 +0200 Subject: [PATCH] fix timer stuffs --- lib/encryption/utils/key_verification.dart | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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));