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
Fix/dont show allready running alert #1510
Conversation
Remove misleading comment.
Labels please :) |
EN { "title": "[Apple/iOS] 'ExposureDetectionIsAlreadyRunning' in CWA version 1.6.1", "anchor": "ExposureDetectionIsAlreadyRunning", "active": true, "textblock": [ "The notification <a href='https://github.com/corona-warn-app/cwa-app-ios/issues/1497'>'ExposureDetectionIsAlreadyRunning'</a> <a href='https://github.com/corona-warn-app/cwa-app-ios/issues/1512#issuecomment-727206633'>can be ignored</a>. The CWA is still working correctly and this issue will be solved with a <a href='https://github.com/corona-warn-app/cwa-app-ios/pull/1510'>future release</a>." ] }, DE { "title": "[Apple/iOS] 'ExposureDetectionIsAlreadyRunning' in CWA version 1.6.1", "anchor": "ExposureDetectionIsAlreadyRunning", "active": true, "textblock": [ "Die Meldung <a href='https://github.com/corona-warn-app/cwa-app-ios/issues/1497'>'ExposureDetectionIsAlreadyRunning'</a> <a href='https://github.com/corona-warn-app/cwa-app-ios/issues/1512#issuecomment-727206633'>kann ignoriert werden</a>. Die CWA funktioniert korrekt und dieses Problem wird in einem <a href='corona-warn-app/cwa-app-ios#1510'> bevorstehenden Update korrigiert</a>." ] },
} else if let exposureDetectionError = noSummaryError as? ExposureDetectionError { | ||
switch exposureDetectionError { | ||
case .isAlreadyRunning: | ||
return nil |
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.
Doesn't the error also trigger a different cell on the home view? Should we throw this error at all?
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.
Very good point!
Currently it cannot happen, because RiskProvider "guards" this case for the key download and the risk detection.
But I think it is still a valid point from the perspective of code readability.
I have added error handling to HomeInteractor which explicitly ignores the allready running errors.
# Conflicts: # src/xcode/ENA/ENA/Source/Services/Risk/Provider/RiskProvider.swift
Description
This PR prevents the alert for already running error.
Link to Jira
3769