mirror of https://github.com/zulip/zulip.git
zilencer: Rename remote_server_unregister_push.
This commit is contained in:
parent
76650f5930
commit
42a99e8c1d
|
@ -383,7 +383,7 @@ def remove_push_device_token(user_profile: UserProfile, token_str: bytes, kind:
|
||||||
'token': token_str,
|
'token': token_str,
|
||||||
'token_kind': kind,
|
'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)
|
send_to_push_bouncer("POST", "unregister", post_data)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,7 @@ v1_api_and_json_patterns = [
|
||||||
url('^remotes/push/register$', rest_dispatch,
|
url('^remotes/push/register$', rest_dispatch,
|
||||||
{'POST': 'zilencer.views.register_remote_push_device'}),
|
{'POST': 'zilencer.views.register_remote_push_device'}),
|
||||||
url('^remotes/push/unregister$', rest_dispatch,
|
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,
|
url('^remotes/push/notify$', rest_dispatch,
|
||||||
{'POST': 'zilencer.views.remote_server_notify_push'}),
|
{'POST': 'zilencer.views.remote_server_notify_push'}),
|
||||||
]
|
]
|
||||||
|
|
|
@ -60,7 +60,7 @@ def register_remote_push_device(request: HttpRequest, entity: Union[UserProfile,
|
||||||
return json_success()
|
return json_success()
|
||||||
|
|
||||||
@has_request_variables
|
@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: bytes=REQ(),
|
||||||
token_kind: int=REQ(validator=check_int),
|
token_kind: int=REQ(validator=check_int),
|
||||||
ios_app_id: Optional[Text]=None) -> HttpResponse:
|
ios_app_id: Optional[Text]=None) -> HttpResponse:
|
||||||
|
|
Loading…
Reference in New Issue