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

Commit 4717bf1

Browse files
authored
Merge pull request #5151 from corona-warn-app/fix/15011-False-Frame-Color-for-INVALID-and-REVOKED-Certificates-after-RampDown
15011-False-Frame-Color-for-INVALID-and-REVOKED-Certificates-after-RampDown
2 parents 2be7efe + 9ee2367 commit 4717bf1

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

src/xcode/ENA/ENA/Source/AppDelegate & Globals/AppDelegate.swift

+1
Original file line numberDiff line numberDiff line change
@@ -812,6 +812,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, CoronaWarnAppDelegate, Re
812812
$0.objectDidChange.send($0)
813813
}
814814
healthCertificateService.updatePublishersFromStore()
815+
healthCertificateService.updateValidityStatesAndNotifications(completion: { })
815816
// Clear all notifications including deadman notification
816817
UNUserNotificationCenter.current().removeAllPendingNotificationRequests()
817818

src/xcode/ENA/ENA/Source/Services/HealthCertificate/HealthCertificateService.swift

-7
Original file line numberDiff line numberDiff line change
@@ -865,13 +865,6 @@ class HealthCertificateService: HealthCertificateServiceServable {
865865
}
866866

867867
private func updateValidityState(for healthCertificate: HealthCertificate, person: HealthCertifiedPerson) {
868-
869-
// In hibernation we set the validity state of blocked health certificate to valid.
870-
if CWAHibernationProvider.shared.isHibernationState, healthCertificate.validityState == .blocked {
871-
healthCertificate.validityState = .valid
872-
return
873-
}
874-
875868
let previousValidityState = healthCertificate.validityState
876869

877870
if revocationProvider.isRevokedFromRevocationList(healthCertificate: healthCertificate) {

0 commit comments

Comments
 (0)