Device Verification: Verified screen

This commit is contained in:
manuroe
2019-04-15 18:40:04 +02:00
parent ee5cf03d64
commit 7a8ff1e9c3
3 changed files with 19 additions and 3 deletions
@@ -98,13 +98,14 @@ final class DeviceVerificationVerifyViewModel: DeviceVerificationVerifyViewModel
}
@objc private func transactionDidStateChange(notification: Notification) {
guard let transaction = notification.object as? MXOutgoingSASTransaction else {
guard let transaction = notification.object as? MXSASTransaction else {
return
}
switch transaction.state {
case MXSASTransactionStateVerified:
self.update(viewState: .loaded)
self.coordinatorDelegate?.deviceVerificationVerifyViewModelDidComplete(self)
case MXSASTransactionStateCancelled:
guard let reason = transaction.reasonCancelCode else {
return