mirror of
https://github.com/zulip/zulip.git
synced 2025-11-15 11:22:04 +00:00
Make client_id parameter in api_get_messages optional
(imported from commit a3221fe73f63c2cfa8f87b6059283a9aa0e8b8e4)
This commit is contained in:
@@ -240,7 +240,7 @@ def json_get_updates(request, user_profile, handler):
|
||||
@asynchronous
|
||||
@authenticated_api_view
|
||||
@has_request_variables
|
||||
def api_get_messages(request, user_profile, handler, client_id=POST):
|
||||
def api_get_messages(request, user_profile, handler, client_id=POST(default=None)):
|
||||
return get_updates_backend(request, user_profile, handler, client_id,
|
||||
apply_markdown=(request.POST.get("apply_markdown") is not None),
|
||||
mirror=request.POST.get("mirror"))
|
||||
|
||||
Reference in New Issue
Block a user