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 <1389908+richvdh@users.noreply.github.com>
  • Loading branch information
erikjohnston and richvdh authored Jun 28, 2022
1 parent 6235916 commit 49def3b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 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,11 @@ 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 49def3b

Please sign in to comment.