setVerified method

Future<void> setVerified(
  1. bool newVerified, [
  2. bool sign = true
])

Implementation

Future<void> setVerified(bool newVerified, [bool sign = true]) async {
  _verified = newVerified;
  final encryption = client.encryption;
  if (newVerified &&
      sign &&
      encryption != null &&
      client.encryptionEnabled &&
      encryption.crossSigning.signable([this])) {
    // sign the key!
    // ignore: unawaited_futures
    encryption.crossSigning.sign([this]);
  }
}