startVerification method

KeyVerification startVerification()

Implementation

KeyVerification startVerification() {
  if (!isValid) {
    throw Exception('setVerification called on invalid key');
  }
  final encryption = client.encryption;
  if (encryption == null) {
    throw Exception('setVerification called with disabled encryption');
  }

  final request = KeyVerification(
      encryption: encryption, userId: userId, deviceId: deviceId!);

  request.start();
  encryption.keyVerificationManager.addRequest(request);
  return request;
}