Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
push_notifications: Provide a stable ordering.
Alex Vandiver04450389e1ea
diff --git a/zerver/tests/test_push_notifications.py b/zerver/tests/test_push_notifications.pyindex ad89016e020..35daee6d2f8 100644--- a/zerver/tests/test_push_notifications.py+++ b/zerver/tests/test_push_notifications.py@@ -726,7 +726,7 @@ class PushBouncerNotificationTest(BouncerTestCase):)android_push.assert_called_once_with(user_identity,- list(reversed(uuid_android_tokens)),+ uuid_android_tokens,{"event": "remove", "zulip_message_ids": ",".join(str(i) for i in range(50, 250))},{},remote=server,diff --git a/zilencer/views.py b/zilencer/views.pyindex d0f2007ae47..b5e5498eac7 100644--- a/zilencer/views.py+++ b/zilencer/views.py@@ -568,7 +568,7 @@ def remote_server_notify_push(user_identity.filter_q(),kind=RemotePushDeviceToken.GCM,server=server,- )+ ).order_by("id"))if android_devices and user_id is not None and user_uuid is not None:android_devices = delete_duplicate_registrations(@@ -580,7 +580,7 @@ def remote_server_notify_push(user_identity.filter_q(),kind=RemotePushDeviceToken.APNS,server=server,- )+ ).order_by("id"))if apple_devices and user_id is not None and user_uuid is not None:apple_devices = delete_duplicate_registrations(apple_devices, server.id, user_id, user_uuid)