summary refs log tree commit diff
path: root/synapse/push/emailpusher.py
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2021-04-21 15:35:38 +0100
committerAndrew Morgan <andrew@amorgan.xyz>2021-04-21 15:35:38 +0100
commit7ba1c6287574f3762537bbe7a9ab0d12d15a6c8c (patch)
treed0b0ffb2744e3fcace8312bfc4a2cee13b288a58 /synapse/push/emailpusher.py
parentMerge commit '1c9a85056' into anoa/dinsic_release_1_31_0 (diff)
parent1.25.0rc1 (diff)
downloadsynapse-7ba1c6287574f3762537bbe7a9ab0d12d15a6c8c.tar.xz
Merge commit '2fe0fb21f' into anoa/dinsic_release_1_31_0
Diffstat (limited to 'synapse/push/emailpusher.py')
-rw-r--r--synapse/push/emailpusher.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/synapse/push/emailpusher.py b/synapse/push/emailpusher.py

index d2eff75a58..4ac1b31748 100644 --- a/synapse/push/emailpusher.py +++ b/synapse/push/emailpusher.py
@@ -157,7 +157,6 @@ class EmailPusher(Pusher): being run. """ start = 0 if INCLUDE_ALL_UNREAD_NOTIFS else self.last_stream_ordering - assert start is not None unprocessed = await self.store.get_unread_push_actions_for_user_in_range_for_email( self.user_id, start, self.max_stream_ordering ) @@ -220,12 +219,8 @@ class EmailPusher(Pusher): ) async def save_last_stream_ordering_and_success( - self, last_stream_ordering: Optional[int] + self, last_stream_ordering: int ) -> None: - if last_stream_ordering is None: - # This happens if we haven't yet processed anything - return - self.last_stream_ordering = last_stream_ordering pusher_still_exists = await self.store.update_pusher_last_stream_ordering_and_success( self.app_id,