zulip/zerver/tornado
Prakhar Pratyush d78f338916 event_queue: Add compatibility code for push_device_registered_user_ids.
In #35965 we added `push_device_registered_user_ids` to message &
update_message event.

Zulip servers with such events in their event queues when upgraded
to the new version set push_device_registered_user_ids to empty list,
which is incorrect - it leads to no push notification sent.

This commit adds compatibility code to handle such events. The newly
introduced `push_device_registered` check is used only for events
with `push_device_registered_user_id` present in them.
2025-09-19 09:19:36 -07:00
..
__init__.py tornado: Move tornado_ioloop_logging to new zerver/tornado tree. 2016-11-26 21:24:05 -08:00
application.py ruff: Fix PLW0108 Lambda may be unnecessary. 2024-03-01 09:30:04 -08:00
descriptors.py ruff: Fix UP007 Use X | Y for type annotations. 2024-07-13 22:28:22 -07:00
django_api.py events: Add support for sending presence events in modern format. 2025-08-12 12:37:54 -07:00
event_queue.py event_queue: Add compatibility code for push_device_registered_user_ids. 2025-09-19 09:19:36 -07:00
exceptions.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
handlers.py ruff: Fix RUF051 Use pop instead of key in dictdel dict[key]. 2025-03-14 17:31:50 -07:00
ioloop_logging.py ruff: Fix UP006 Use list instead of List for type annotation. 2024-07-13 22:28:22 -07:00
sharding.py ruff: Fix UP035 Import from collections.abc, typing instead. 2024-07-13 22:28:22 -07:00
views.py events: Add support for sending presence events in modern format. 2025-08-12 12:37:54 -07:00