better set verified

This commit is contained in:
Sorunome 2020-06-21 21:48:06 +02:00
parent 18f8d0db63
commit dbcdb6883d
No known key found for this signature in database
GPG key ID: B19471D07FC9BE9C

View file

@ -237,7 +237,7 @@ abstract class SignableKey extends MatrixSignableKey {
return false; return false;
} }
Future<void> setVerified(bool newVerified, [bool sign = true]) { void setVerified(bool newVerified, [bool sign = true]) {
_verified = newVerified; _verified = newVerified;
if (newVerified && if (newVerified &&
sign && sign &&
@ -246,7 +246,6 @@ abstract class SignableKey extends MatrixSignableKey {
// sign the key! // sign the key!
client.encryption.crossSigning.sign([this]); client.encryption.crossSigning.sign([this]);
} }
return Future.value();
} }
Future<void> setBlocked(bool newBlocked); Future<void> setBlocked(bool newBlocked);