Device Verification: Display a message when the transaction has been automatically cancelled

This commit is contained in:
manuroe
2019-04-17 13:05:18 +02:00
parent e02f19742f
commit ed122b1580
5 changed files with 24 additions and 2 deletions
@@ -104,6 +104,11 @@ final class DeviceVerificationIncomingViewModel: DeviceVerificationIncomingViewM
return
}
self.update(viewState: .cancelled(reason))
case MXSASTransactionStateCancelledByMe:
guard let reason = transaction.reasonCancelCode else {
return
}
self.update(viewState: .cancelledByMe(reason))
default:
break
}