rejectVerification method

Future<void> rejectVerification()

called when the user rejects an incoming verification

Implementation

Future<void> rejectVerification() async {
  if (isDone) {
    return;
  }
  if (!(await verifyLastStep([
    EventTypes.KeyVerificationRequest,
    EventTypes.KeyVerificationStart
  ]))) {
    return;
  }
  await cancel('m.user');
}