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:
Prakhar Pratyush
2025-07-31 11:16:06 +05:30
committed by Tim Abbott
parent 1a5cab130d
commit c9edb9c9ce
3 changed files with 4 additions and 5 deletions

View File

@@ -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

View File

@@ -655,7 +655,6 @@ class HandlePushNotificationTest(PushNotificationTestCase):
"user_id": self.user_profile.id,
"event": "remove",
"zulip_message_ids": str(message.id),
"zulip_message_id": message.id,
},
{"priority": "normal"},
list(
@@ -724,7 +723,6 @@ class HandlePushNotificationTest(PushNotificationTestCase):
"user_id": self.user_profile.id,
"event": "remove",
"zulip_message_ids": str(message.id),
"zulip_message_id": message.id,
},
{"priority": "normal"},
)