setVerified method

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

Implementation

@override
Future<void> setVerified(bool newVerified, [bool sign = true]) async {
  if (!isValid) {
    throw Exception('setVerified called on invalid key');
  }
  await super.setVerified(newVerified, sign);
  await client.database
      ?.setVerifiedUserCrossSigningKey(newVerified, userId, publicKey!);
}