-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IOS-7148 Handle finalized card #368
Conversation
} else if repo.data.attestSignature == nil || repo.data.backupData.count < repo.data.backupCards.count { | ||
} else if repo.data.attestSignature == nil | ||
|| repo.data.backupData.count < repo.data.backupCards.count | ||
|| repo.data.primaryCardFinalized == false { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
При перезапуске приложения нужно доводить финализацию до конца
if case .invalidState = error { | ||
Log.debug("Got \(error). Ignoring..") | ||
self.onFinalize() | ||
completion(.success(card)) | ||
return | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Получается при invalidState мы все равно помечаем бэкап как выполненный?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Да, этот invalidState приходит от конкретной команды в кейсе когда она уже выполнилась прежде, поэтому тут безопасно заигнорить его, на карте уже все ок
Хэндлинг корнер кейсов
https://tangem.atlassian.net/browse/IOS-7148