scheduled_message: Send `update` event on failed delivery.

This commit is contained in:
Aman Agrawal 2023-05-13 08:49:01 +00:00 committed by Tim Abbott
parent 4dd32a4d85
commit c2145a8993
1 changed files with 1 additions and 0 deletions

View File

@ -350,6 +350,7 @@ def try_deliver_one_scheduled_message(logger: logging.Logger) -> bool:
and not isinstance(e, RealmDeactivatedError)
and not isinstance(e, UserDeactivatedError)
):
notify_update_scheduled_message(scheduled_message.sender, scheduled_message)
send_failed_scheduled_message_notification(
scheduled_message.sender, scheduled_message.id
)