Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

Commit

Permalink
Merge pull request #5151 from corona-warn-app/fix/15011-False-Frame-C…
Browse files Browse the repository at this point in the history
…olor-for-INVALID-and-REVOKED-Certificates-after-RampDown

15011-False-Frame-Color-for-INVALID-and-REVOKED-Certificates-after-RampDown
  • Loading branch information
30mar authored Apr 6, 2023
2 parents 2be7efe + 9ee2367 commit 4717bf1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -812,6 +812,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, CoronaWarnAppDelegate, Re
$0.objectDidChange.send($0)
}
healthCertificateService.updatePublishersFromStore()
healthCertificateService.updateValidityStatesAndNotifications(completion: { })
// Clear all notifications including deadman notification
UNUserNotificationCenter.current().removeAllPendingNotificationRequests()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -865,13 +865,6 @@ class HealthCertificateService: HealthCertificateServiceServable {
}

private func updateValidityState(for healthCertificate: HealthCertificate, person: HealthCertifiedPerson) {

// In hibernation we set the validity state of blocked health certificate to valid.
if CWAHibernationProvider.shared.isHibernationState, healthCertificate.validityState == .blocked {
healthCertificate.validityState = .valid
return
}

let previousValidityState = healthCertificate.validityState

if revocationProvider.isRevokedFromRevocationList(healthCertificate: healthCertificate) {
Expand Down

0 comments on commit 4717bf1

Please sign in to comment.