From dbcdb6883d8d1afcc67dc0521bda8b24774d160d Mon Sep 17 00:00:00 2001 From: Sorunome Date: Sun, 21 Jun 2020 21:48:06 +0200 Subject: [PATCH] better set verified --- lib/src/utils/device_keys_list.dart | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/src/utils/device_keys_list.dart b/lib/src/utils/device_keys_list.dart index dfa0f78..c8430b7 100644 --- a/lib/src/utils/device_keys_list.dart +++ b/lib/src/utils/device_keys_list.dart @@ -237,7 +237,7 @@ abstract class SignableKey extends MatrixSignableKey { return false; } - Future setVerified(bool newVerified, [bool sign = true]) { + void setVerified(bool newVerified, [bool sign = true]) { _verified = newVerified; if (newVerified && sign && @@ -246,7 +246,6 @@ abstract class SignableKey extends MatrixSignableKey { // sign the key! client.encryption.crossSigning.sign([this]); } - return Future.value(); } Future setBlocked(bool newBlocked);