mirror of
https://github.com/element-hq/synapse.git
synced 2025-03-07 00:16:57 +00:00
Stop processing notifs once we've sent a mail
This commit is contained in:
parent
4b0c3a3270
commit
4364ea1272
1 changed files with 1 additions and 0 deletions
|
@ -159,6 +159,7 @@ class EmailPusher(object):
|
||||||
yield self.sent_notif_update_throttle(
|
yield self.sent_notif_update_throttle(
|
||||||
push_action['room_id'], push_action
|
push_action['room_id'], push_action
|
||||||
)
|
)
|
||||||
|
break
|
||||||
else:
|
else:
|
||||||
if soonest_due_at is None or should_notify_at < soonest_due_at:
|
if soonest_due_at is None or should_notify_at < soonest_due_at:
|
||||||
soonest_due_at = should_notify_at
|
soonest_due_at = should_notify_at
|
||||||
|
|
Loading…
Add table
Reference in a new issue