Device Verification: Start: Fix missing cancelledByMe state

This commit is contained in:
manuroe
2019-04-18 23:12:01 +02:00
parent 00f4857ce2
commit b91749e494
4 changed files with 19 additions and 0 deletions
@@ -120,6 +120,11 @@ final class DeviceVerificationStartViewModel: DeviceVerificationStartViewModelTy
return
}
self.update(viewState: .cancelled(reason))
case MXSASTransactionStateCancelledByMe:
guard let reason = transaction.reasonCancelCode else {
return
}
self.update(viewState: .cancelledByMe(reason))
default:
break
}