summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2021-09-17 17:30:32 +0100
committerErik Johnston <erik@matrix.org>2021-09-17 17:30:32 +0100
commit0ce9315f9ffbb3dddf88508f56857748cfe7a3c6 (patch)
tree400a2a2ffa166d19890a45af01ff6d5deae3147d
parentDon't create temporary function (diff)
downloadsynapse-0ce9315f9ffbb3dddf88508f56857748cfe7a3c6.tar.xz
Fix tests
-rw-r--r--synapse/push/emailpusher.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/push/emailpusher.py b/synapse/push/emailpusher.py
index e08e125cb8..cf5abdfbda 100644
--- a/synapse/push/emailpusher.py
+++ b/synapse/push/emailpusher.py
@@ -184,7 +184,7 @@ class EmailPusher(Pusher):
 
             should_notify_at = max(notif_ready_at, room_ready_at)
 
-            if should_notify_at < self.clock.time_msec():
+            if should_notify_at <= self.clock.time_msec():
                 # one of our notifications is ready for sending, so we send
                 # *one* email updating the user on their notifications,
                 # we then consider all previously outstanding notifications