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

Commit 49def3b

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

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

synapse/storage/databases/main/event_push_actions.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -840,7 +840,11 @@ 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 now redundant, so we can
846+
remove them from `event_push_actions` and update `event_push_summary`.
847+
"""
844848

845849
limit = 100
846850

0 commit comments

Comments
 (0)