Live Activity Content Density
Nucleic-Session: B3643133-163C-4C5D-BE20-1A6B7FB83DA9 Co-authored-by: Nucleic <[email protected]>
This commit is contained in:
@@ -136,10 +136,13 @@ final class LiveActivityManager {
|
|||||||
func end() {
|
func end() {
|
||||||
updateTask?.cancel()
|
updateTask?.cancel()
|
||||||
updateTask = nil
|
updateTask = nil
|
||||||
|
tokenObservation?.cancel()
|
||||||
|
tokenObservation = nil
|
||||||
pendingState = nil
|
pendingState = nil
|
||||||
lastState = nil
|
lastState = nil
|
||||||
guard let activity else { return }
|
guard let activity else { return }
|
||||||
self.activity = nil
|
self.activity = nil
|
||||||
|
onActivityEnded?(activity.id) // let the Macs stop pushing to this token
|
||||||
Task {
|
Task {
|
||||||
await activity.end(
|
await activity.end(
|
||||||
ActivityContent(state: activity.content.state, staleDate: nil),
|
ActivityContent(state: activity.content.state, staleDate: nil),
|
||||||
|
|||||||
Reference in New Issue
Block a user