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

Add some docstrings (and avoid a duplicate query) in push actions processing #13455

Merged
merged 11 commits into from
Aug 4, 2022
2 changes: 2 additions & 0 deletions synapse/storage/databases/main/event_push_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -910,6 +910,8 @@ def _handle_new_receipts_for_notifs_txn(self, txn: LoggingTransaction) -> bool:
# recalculate the summary.
for _, room_id, user_id, stream_ordering in rows:
# Only handle our own read receipts.
#
# XXX Is this needed, the query filters these out?
clokep marked this conversation as resolved.
Show resolved Hide resolved
if not self.hs.is_mine_id(user_id):
continue

Expand Down