mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
push_notification: Add support to send E2EE test push notification.
This commit adds an endpoint `/mobile_push/e2ee/test_notification` to send an end-to-end encrypted test push notification to the user's selected mobile device or all of their mobile devices.
This commit is contained in:
committed by
Tim Abbott
parent
f034a6c3b4
commit
3cbf0e70a2
@@ -118,6 +118,7 @@ from zerver.views.push_notifications import (
|
||||
self_hosting_auth_not_configured,
|
||||
self_hosting_auth_redirect_endpoint,
|
||||
self_hosting_registration_transfer_challenge_verify,
|
||||
send_e2ee_test_push_notification_api,
|
||||
send_test_push_notification_api,
|
||||
)
|
||||
from zerver.views.reactions import add_reaction, remove_reaction
|
||||
@@ -462,6 +463,7 @@ v1_api_and_json_patterns = [
|
||||
),
|
||||
rest_path("users/me/android_gcm_reg_id", POST=add_android_reg_id, DELETE=remove_android_reg_id),
|
||||
rest_path("mobile_push/test_notification", POST=send_test_push_notification_api),
|
||||
rest_path("mobile_push/e2ee/test_notification", POST=send_e2ee_test_push_notification_api),
|
||||
rest_path("mobile_push/register", POST=register_push_device),
|
||||
# users/*/presence => zerver.views.presence.
|
||||
rest_path(
|
||||
|
Reference in New Issue
Block a user