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

Commit

Permalink
Update synapse/storage/databases/main/event_push_actions.py
Browse files Browse the repository at this point in the history
Co-authored-by: Richard van der Hoff <[email protected]>
  • Loading branch information
erikjohnston and richvdh committed Jun 28, 2022
1 parent 6235916 commit 12efcd7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion synapse/storage/databases/main/event_push_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -840,7 +840,12 @@ async def _rotate_notifs(self) -> None:
self._doing_notif_rotation = False

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

limit = 100

Expand Down

0 comments on commit 12efcd7

Please sign in to comment.