Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 12efcd7

Browse files
erikjohnstonrichvdh
andcommitted
Update synapse/storage/databases/main/event_push_actions.py
Co-authored-by: Richard van der Hoff <[email protected]>
1 parent 6235916 commit 12efcd7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

synapse/storage/databases/main/event_push_actions.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -840,7 +840,12 @@ async def _rotate_notifs(self) -> None:
840840
self._doing_notif_rotation = False
841841

842842
def _handle_new_receipts_for_notifs_txn(self, txn: LoggingTransaction) -> bool:
843-
"""Check for new read receipts and delete from event push actions."""
843+
"""Check for new read receipts and delete from event push actions.
844+
845+
Any push actions which predate the user's most recent read receipt are
846+
now redundant, so we can remove them from `event_push_actions` and
847+
update `event_push_summary`.
848+
"""
844849

845850
limit = 100
846851

0 commit comments

Comments
 (0)