def process_notification(notice):
    event = notice['event']
    users = notice['users']
    if event['type'] in ["update_message"]:
        process_userdata_event(event, users)
    elif event['type'] == "message":
        process_message_event(event, users)
    else:
        process_event(event, users)

# Runs in the Django process to send a notification to Tornado.
#
# We use JSON rather than bare form parameters, so that we can represent
# different types and for compatibility with non-HTTP transports.
dataset/ETHPy150Open zulip/zulip/zerver/lib/event_queue.py/process_notification/original