Device Verification: Stay in infinite waiting

#2878

Don't stop listening to transaction updates if we receive unexpected events else you block the state machine.
This commit is contained in:
manuroe
2019-12-09 18:31:25 +01:00
parent 5c5a9a9a47
commit 6313dbb6dc
3 changed files with 6 additions and 7 deletions
@@ -103,11 +103,6 @@ final class DeviceVerificationVerifyViewModel: DeviceVerificationVerifyViewModel
return
}
self.update(viewState: .error(error))
case MXSASTransactionStateCancelled:
guard let reason = transaction.reasonCancelCode else {
return
}
self.update(viewState: .cancelled(reason))
case MXSASTransactionStateCancelledByMe:
guard let reason = transaction.reasonCancelCode else {
return