covid-alert-ny / covid-green-app

Covid Alert NY - React-Native App
Apache License 2.0
6 stars 1 forks source link

Don't delete tokens on offline upload #647

Closed AlanSl closed 3 years ago

AlanSl commented 3 years ago

Previously, if the user was offline on attempting to upload random IDs, this was treated as if the upload token had been rejected and it was deleted. Since the code had already been validated, the user couldn't upload codes without requesting a new upload code. Detailed report here - https://trello.com/c/TBJvPyTF/133-offline-when-sharing-codes-results-in-error-message-instead-of-network-connection-message-and-code-is-not-remembered

With this, network errors show a network error message and don't delete the upload tokens, allowing the user to upload when they're back online.