mirror of https://github.com/zulip/zulip.git
deliver_scheduled_messages: Make notification bot deliver reminders.
We do this since we are yet to figure out how the entire realm internal bots scenerio should work and therefore for the timming we will use notification bot to deliver the reminders.
This commit is contained in:
parent
58fa142c7d
commit
aae90d5d6b
|
@ -44,7 +44,7 @@ Usage: ./manage.py deliver_scheduled_messages
|
||||||
if delivery_type == ScheduledMessage.SEND_LATER:
|
if delivery_type == ScheduledMessage.SEND_LATER:
|
||||||
message.sender = original_sender
|
message.sender = original_sender
|
||||||
elif delivery_type == ScheduledMessage.REMIND:
|
elif delivery_type == ScheduledMessage.REMIND:
|
||||||
message.sender = get_user_by_delivery_email(settings.REMINDER_BOT, original_sender.realm)
|
message.sender = get_user_by_delivery_email(settings.NOTIFICATION_BOT, original_sender.realm)
|
||||||
|
|
||||||
return {'message': message, 'stream': scheduled_message.stream,
|
return {'message': message, 'stream': scheduled_message.stream,
|
||||||
'realm': scheduled_message.realm}
|
'realm': scheduled_message.realm}
|
||||||
|
|
Loading…
Reference in New Issue