Device Verification: Display the "The other party cancelled the verification." modal

This commit is contained in:
manuroe
2019-04-11 19:38:46 +02:00
parent 8e770cdb67
commit 69dcd25c8d
8 changed files with 38 additions and 10 deletions
@@ -114,7 +114,10 @@ final class DeviceVerificationStartViewModel: DeviceVerificationStartViewModelTy
case MXSASTransactionStateShowSAS:
self.coordinatorDelegate?.deviceVerificationStartViewModel(self, didCompleteWithOutgoingTransaction: transaction)
case MXSASTransactionStateCancelled:
self.coordinatorDelegate?.deviceVerificationStartViewModel(self, didTransactionCancelled: transaction)
guard let reason = transaction.reasonCancelCode else {
return
}
self.update(viewState: .cancelled(reason))
default:
break
}