mirror of
https://github.com/zulip/zulip.git
synced 2025-11-01 20:44:04 +00:00
zerver: Add endpoint to register a push device to server.
This commit adds an endpoint to register a push device to receive E2EE push notifications.
This commit is contained in:
committed by
Tim Abbott
parent
c846302417
commit
5f8edf669d
@@ -101,6 +101,9 @@ class PushDevice(AbstractPushDevice):
|
||||
# generated by the client to register. But the API treats
|
||||
# that as idempotent request.
|
||||
# We treat (user, push_account_id) as a unique registration.
|
||||
#
|
||||
# Also, the unique index created is used by queries in `get_push_accounts`,
|
||||
# `register_push_device`, and `handle_register_push_device_to_bouncer`.
|
||||
fields=["user", "push_account_id"],
|
||||
name="unique_push_device_user_push_account_id",
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user