Push Notification Live Activity Redundancy

Nucleic-Session: 73687ED9-C11C-438C-832B-979332B73893
Co-authored-by: Nucleic <[email protected]>
This commit is contained in:
2026-07-06 21:34:34 -07:00
co-authored by Nucleic
parent 5535152810
commit c6427987b8
@@ -715,7 +715,12 @@ final class RemoteStore: ObservableObject {
} }
cb.sessionBecameWaiting = { [weak self] summary in cb.sessionBecameWaiting = { [weak self] summary in
guard let self, !self.isActive else { return } guard let self, !self.isActive else { return }
NotificationRouter.shared.postSessionUpdate(summary) // Backgrounded: prefer the glance — it shows the waiting session and alerts through the
// local update (sound/haptic). Only fall back to a banner when there's no glance at all
// (Live Activities off), so a needs-input arrival is never silent.
if !LiveActivityManager.shared.hasLiveActivity {
NotificationRouter.shared.postSessionUpdate(summary)
}
} }
cb.wireError = { [weak self] error in cb.wireError = { [weak self] error in
self?.showError(error.message, sessionID: error.sessionID) self?.showError(error.message, sessionID: error.sessionID)