feat: improve group member events and push delivery
This commit is contained in:
@@ -158,7 +158,7 @@ func PrepareV1Notifications(rcpt *push.Receipt, config *configType) ([]*fcmv1.Me
|
||||
for uid, devList := range devices {
|
||||
topic := rcpt.Payload.Topic
|
||||
userData := data
|
||||
if rcpt.To[uid].Delivered > 0 {
|
||||
if rcpt.To[uid].Delivered > 0 || rcpt.To[uid].Silent {
|
||||
userData = clonePayload(data)
|
||||
// Silence the push for user who have received the data interactively.
|
||||
userData["silent"] = "true"
|
||||
|
||||
Reference in New Issue
Block a user