Launch Activity Logic
Nucleic-Session: EBB24271-3AB2-4CBD-A47A-59FC73500371 Co-authored-by: Nucleic <[email protected]>
This commit is contained in:
@@ -563,8 +563,10 @@ final class RemoteStore: ObservableObject {
|
|||||||
self.refreshAggregate()
|
self.refreshAggregate()
|
||||||
self.flushPendingNotificationDecision()
|
self.flushPendingNotificationDecision()
|
||||||
// A host that just connected (or reconnected) needs the current Live Activity token
|
// A host that just connected (or reconnected) needs the current Live Activity token
|
||||||
// so it can push while the phone is away.
|
// so it can push while the phone is away — and the push-to-start token so it can create
|
||||||
|
// the glance cold when work starts before the app is opened.
|
||||||
self.syncLiveActivityRegistration()
|
self.syncLiveActivityRegistration()
|
||||||
|
self.syncPushToStartRegistration()
|
||||||
}
|
}
|
||||||
cb.openSnapshot = { [weak self] snap in
|
cb.openSnapshot = { [weak self] snap in
|
||||||
guard let self, hostID == self.openSessionHostID, snap.summary.sessionID == self.openSessionID else { return }
|
guard let self, hostID == self.openSessionHostID, snap.summary.sessionID == self.openSessionID else { return }
|
||||||
|
|||||||
Reference in New Issue
Block a user