mirror of
https://github.com/zulip/zulip.git
synced 2025-11-10 08:56:10 +00:00
We add two functions: 1.) check_schedule_message(): This function is responsible for doing the essential initial checkes to verify the validity of the message. These checkes include things like if user is allowed to send messages to some stream or not or if the user is a super_user. All this is basically done by further calling check_message() with appropriate parameters. This is on the same lines as is check_send_message(). 2.) do_schedule_messages(): This function is responsible for creating ScheduleMessage table rows for a list of messages that are to be scheduled. This basically accumulates the ScheduleMessage objects in a list and then bulk creates the rows.
188 KiB
188 KiB