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

Commit 9970af8

Browse files
committed
Filter to local users.
1 parent 3549b5e commit 9970af8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

synapse/handlers/event_auth.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,8 @@ async def get_user_which_could_invite(
127127
# Find the user with the highest power level.
128128
users_in_room = await self._store.get_users_in_room(room_id)
129129
chosen_user = max(
130-
users_in_room,
130+
# Only interested in local users.
131+
filter(lambda u: get_domain_from_id(u) == self._server_name, users_in_room),
131132
key=lambda user: users.get(user, users_default_level),
132133
default=None,
133134
)

0 commit comments

Comments
 (0)