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

Commit

Permalink
Wrapping happens at 88 chars
Browse files Browse the repository at this point in the history
  • Loading branch information
MadLittleMods committed Sep 30, 2022
1 parent 92b9da2 commit 5d3c6a3
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions synapse/storage/databases/main/roommember.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,18 +152,16 @@ async def get_users_in_room(self, room_id: str) -> List[str]:
`get_current_hosts_in_room()` and so we can re-use the cache but it's
not horrible to have here either.
Uses `m.room.member`s in the room state at the current forward
extremities to determine which users are in the room.
Will return inaccurate results for rooms with partial state, since the
state for the forward extremities of those rooms will exclude most
members. We may also calculate room state incorrectly for such rooms and
believe that a member is or is not in the room when the opposite is
true.
Note: If you only care about users in the room local to the homeserver,
use `get_local_users_in_room(...)` instead which will be more
performant.
Uses `m.room.member`s in the room state at the current forward extremities to
determine which users are in the room.
Will return inaccurate results for rooms with partial state, since the state for
the forward extremities of those rooms will exclude most members. We may also
calculate room state incorrectly for such rooms and believe that a member is or
is not in the room when the opposite is true.
Note: If you only care about users in the room local to the homeserver, use
`get_local_users_in_room(...)` instead which will be more performant.
"""
return await self.db_pool.runInteraction(
"get_users_in_room", self.get_users_in_room_txn, room_id
Expand Down

0 comments on commit 5d3c6a3

Please sign in to comment.