From d92fd2aeacd20901d37f3e59ff6c2c38acf1d613 Mon Sep 17 00:00:00 2001 From: Eric Eastwood Date: Fri, 30 Sep 2022 13:58:17 -0500 Subject: [PATCH] Revert other local change that we can't do --- synapse/storage/databases/main/appservice.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/synapse/storage/databases/main/appservice.py b/synapse/storage/databases/main/appservice.py index 0ec18d1baf..9b33cd1dad 100644 --- a/synapse/storage/databases/main/appservice.py +++ b/synapse/storage/databases/main/appservice.py @@ -167,12 +167,12 @@ class ApplicationServiceWorkerStore(RoomMemberWorkerStore): Returns: List of user IDs that the appservice is interested in. """ - # We can use `get_local_users_in_room(...)` here because an application - # service can only act on behalf of users of the server it's on. - local_users_in_room = await self.get_local_users_in_room( + # We need to get all users (local and remote) as an application service can be + # interested in anyone. + users_in_room = await self.get_users_in_room( 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):