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:
Tim Abbott 2013-01-09 10:46:19 -05:00
parent 45b9de1e85
commit f65ad3d59b

View File

@ -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'])