set dismissal for live activity in lock screen

This commit is contained in:
Andre Medeiros 2022-10-31 13:35:01 -04:00
parent 6e668e538c
commit a467b08878

View file

@ -277,9 +277,10 @@ func (lac *liveActivitiesConsumer) Consume(delivery rmq.Delivery) {
bb, _ := json.Marshal(map[string]interface{}{ bb, _ := json.Marshal(map[string]interface{}{
"aps": map[string]interface{}{ "aps": map[string]interface{}{
"timestamp": time.Now().Unix(), "content-state": din,
"event": ev, "dismissal-date": la.ExpiresAt.Unix(),
"content-state": din, "event": ev,
"timestamp": now.Unix(),
}, },
}) })