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

Commit cf1cf26

Browse files
committed
Add comment about why we don't pass state_event_ids
1 parent 0218814 commit cf1cf26

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

synapse/handlers/room.py

+2
Original file line numberDiff line numberDiff line change
@@ -1036,6 +1036,8 @@ async def send(etype: str, content: JsonDict, **kwargs: Any) -> int:
10361036
event,
10371037
ratelimit=False,
10381038
ignore_shadow_ban=True,
1039+
# Note: we don't pass state_event_ids here because this triggers
1040+
# an additional query per event to look them up from the events table.
10391041
prev_event_ids=[last_sent_event_id] if last_sent_event_id else [],
10401042
)
10411043

0 commit comments

Comments
 (0)