mirror of
https://github.com/zulip/zulip.git
synced 2025-11-13 10:26:28 +00:00
push_notification: Remove 'zulip_message_id' from FCM payload.
This commit removes the 'zulip_message_id' field from the FCM payload for remove push notification. Clients that use `zulip_message_ids` instead have been out for years and we no longer support older client versions that don't.
This commit is contained in:
committed by
Tim Abbott
parent
1a5cab130d
commit
c9edb9c9ce
@@ -1203,9 +1203,6 @@ def get_remove_payload_gcm(
|
||||
gcm_payload.update(
|
||||
event="remove",
|
||||
zulip_message_ids=",".join(str(id) for id in message_ids),
|
||||
# Older clients (all clients older than 2019-02-13) look only at
|
||||
# `zulip_message_id` and ignore `zulip_message_ids`. Do our best.
|
||||
zulip_message_id=message_ids[0],
|
||||
)
|
||||
gcm_options = {"priority": "normal"}
|
||||
return gcm_payload, gcm_options
|
||||
|
||||
Reference in New Issue
Block a user