mirror of
https://github.com/element-hq/synapse
synced 2024-09-12 08:15:11 +00:00
Revert other local change that we can't do
This commit is contained in:
parent
7bd38034f9
commit
d92fd2aeac
1 changed files with 4 additions and 4 deletions
|
@ -167,12 +167,12 @@ class ApplicationServiceWorkerStore(RoomMemberWorkerStore):
|
||||||
Returns:
|
Returns:
|
||||||
List of user IDs that the appservice is interested in.
|
List of user IDs that the appservice is interested in.
|
||||||
"""
|
"""
|
||||||
# We can use `get_local_users_in_room(...)` here because an application
|
# We need to get all users (local and remote) as an application service can be
|
||||||
# service can only act on behalf of users of the server it's on.
|
# interested in anyone.
|
||||||
local_users_in_room = await self.get_local_users_in_room(
|
users_in_room = await self.get_users_in_room(
|
||||||
room_id, on_invalidate=cache_context.invalidate
|
room_id, on_invalidate=cache_context.invalidate
|
||||||
)
|
)
|
||||||
return list(filter(app_service.is_interested_in_user, local_users_in_room))
|
return list(filter(app_service.is_interested_in_user, users_in_room))
|
||||||
|
|
||||||
|
|
||||||
class ApplicationServiceStore(ApplicationServiceWorkerStore):
|
class ApplicationServiceStore(ApplicationServiceWorkerStore):
|
||||||
|
|
Loading…
Reference in a new issue