improved push notification settings with health indicators and optimized notification dismissal
This commit is contained in:
@@ -87,6 +87,13 @@ class PushStatusReport {
|
||||
(general.registeredProxyServer?.isNotEmpty ?? false) &&
|
||||
!proxyEndpointMismatch(general) &&
|
||||
general.lastRegistrationError == null;
|
||||
|
||||
/// True when no link in the chain is currently broken. Unknown links stay
|
||||
/// permissive (mirroring [readyForTestNotification]) so a not-yet-loaded
|
||||
/// capability or an undetermined OS permission does not flip the at-a-glance
|
||||
/// health icon to red. Drives the compact status indicator in the settings.
|
||||
bool get chainHealthy =>
|
||||
buildPushStatusRows(this).every((row) => row.state != PushCheck.fail);
|
||||
}
|
||||
|
||||
/// Collects the current push chain state. Settings/capability flags come from
|
||||
|
||||
Reference in New Issue
Block a user