mirror of
https://github.com/zulip/zulip.git
synced 2026-07-15 21:03:26 +08:00
Remove obsolete check for empty users string.
This code is from a previous protocol where the users array was posted as a comma-separate list, rather than encoded via json. (imported from commit 3a2edfcbf250a7eef305b2e98018c1361cc2fffe)
This commit is contained in:
parent
45b9de1e85
commit
f65ad3d59b
@ -72,12 +72,6 @@ def update_pointer(user_profile_id, new_pointer, pointer_updater):
|
||||
|
||||
@internal_notify_view
|
||||
def notify_new_message(request):
|
||||
# If a message for some reason has no recipients (e.g. it is sent
|
||||
# by a bot to a stream that nobody is subscribed to), just skip
|
||||
# the message gracefully
|
||||
if request.POST["users"] == "":
|
||||
return json_success()
|
||||
|
||||
recipient_profile_ids = map(int, json_to_list(request.POST['users']))
|
||||
message = Message.objects.get(id=request.POST['message'])
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user