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

Commit

Permalink
Remove unused room_id argument
Browse files Browse the repository at this point in the history
  • Loading branch information
Fizzadar committed Aug 19, 2022
1 parent b63692d commit f992ddf
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions synapse/storage/databases/main/roommember.py
Original file line number Diff line number Diff line change
Expand Up @@ -847,21 +847,15 @@ async def get_joined_users_from_state(

assert state_group is not None
with Measure(self._clock, "get_joined_users_from_state"):
return await self._get_joined_users_from_context(
room_id,
state_group,
state,
)
return await self._get_joined_users_from_context(state_group, state)

async def _get_joined_users_from_context(
self,
room_id: str,
state_group: Union[object, int],
current_state_ids: StateMap[str],
) -> Dict[str, ProfileInfo]:
"""
For a given (room_id, state_group), get a map of user ID to profile information
for user in the room.
For a given state_group, get a map of user ID to profile information for users in the room.
This method doesn't do any fetching of data itself and instead checks various
caches for the relevant data before passing any remaining missing event IDs to
Expand Down

0 comments on commit f992ddf

Please sign in to comment.