mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +00:00
zilencer: Rename remote_server_unregister_push.
This commit is contained in:
@@ -383,7 +383,7 @@ def remove_push_device_token(user_profile: UserProfile, token_str: bytes, kind:
|
||||
'token': token_str,
|
||||
'token_kind': kind,
|
||||
}
|
||||
# Calls zilencer.views.remote_server_unregister_push.
|
||||
# Calls zilencer.views.unregister_remote_push_device
|
||||
send_to_push_bouncer("POST", "unregister", post_data)
|
||||
return
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ v1_api_and_json_patterns = [
|
||||
url('^remotes/push/register$', rest_dispatch,
|
||||
{'POST': 'zilencer.views.register_remote_push_device'}),
|
||||
url('^remotes/push/unregister$', rest_dispatch,
|
||||
{'POST': 'zilencer.views.remote_server_unregister_push'}),
|
||||
{'POST': 'zilencer.views.unregister_remote_push_device'}),
|
||||
url('^remotes/push/notify$', rest_dispatch,
|
||||
{'POST': 'zilencer.views.remote_server_notify_push'}),
|
||||
]
|
||||
|
||||
@@ -60,7 +60,7 @@ def register_remote_push_device(request: HttpRequest, entity: Union[UserProfile,
|
||||
return json_success()
|
||||
|
||||
@has_request_variables
|
||||
def remote_server_unregister_push(request: HttpRequest, entity: Union[UserProfile, RemoteZulipServer],
|
||||
def unregister_remote_push_device(request: HttpRequest, entity: Union[UserProfile, RemoteZulipServer],
|
||||
token: bytes=REQ(),
|
||||
token_kind: int=REQ(validator=check_int),
|
||||
ios_app_id: Optional[Text]=None) -> HttpResponse:
|
||||
|
||||
Reference in New Issue
Block a user