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

Fix/15011 False-Frame-Color-for-INVALID-and-REVOKED-Certificates-after-RampDown #5151

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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