Session verification: Cancel if device is not found.

This commit is contained in:
SBiOSoftWhare
2020-05-07 12:21:47 +02:00
parent 4a78b53233
commit f2f212546d

View File

@@ -188,7 +188,12 @@ final class UserVerificationSessionStatusViewController: UIViewController {
private func render(error: Error) {
self.activityPresenter.removeCurrentActivityIndicator(animated: true)
self.errorPresenter.presentError(from: self, forError: error, animated: true, handler: nil)
self.errorPresenter.presentError(from: self, forError: error, animated: true, handler: {
if case UserVerificationSessionStatusViewModelError.deviceNotFound = error {
self.viewModel.process(viewAction: .close)
}
})
}
private func buildUserInfoText(with userId: String, userDisplayName: String?) -> String {