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

Commit 89fdb72

Browse files
committed
Add warning about incorrect results in partial stated rooms
1 parent 9ac8b45 commit 89fdb72

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

synapse/handlers/event_auth.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,10 @@ async def assert_host_in_room(
168168
169169
If the room is partial-stated, we raise an AuthError with the
170170
UNABLE_DUE_TO_PARTIAL_STATE error code, unless `allow_partial_state_rooms` is true.
171+
172+
If allow_partial_state_rooms is True and the room is partial-stated,
173+
this function may return an incorrect result as we are not able to fully
174+
track server membership in a room without full state.
171175
"""
172176
if not allow_partial_state_rooms and await self._store.is_partial_state_room(
173177
room_id

0 commit comments

Comments
 (0)