summary refs log tree commit diff
path: root/synapse/handlers/appservice.py
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2015-05-22 11:01:28 +0100
committerMark Haines <mark.haines@matrix.org>2015-05-22 11:01:28 +0100
commitf43544eecc362943f9d64a004d40984739a68d98 (patch)
treec4c362d455502b7abb038751e6e2878b1973dbbf /synapse/handlers/appservice.py
parentMerge branch 'master' of github.com:matrix-org/synapse into develop (diff)
downloadsynapse-f43544eecc362943f9d64a004d40984739a68d98.tar.xz
Make the appservice use 'users_in_room' rather than get_room_members since it is cached
Diffstat (limited to 'synapse/handlers/appservice.py')
-rw-r--r--synapse/handlers/appservice.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/synapse/handlers/appservice.py b/synapse/handlers/appservice.py
index 355ab317df..05735137d8 100644
--- a/synapse/handlers/appservice.py
+++ b/synapse/handlers/appservice.py
@@ -147,10 +147,7 @@ class ApplicationServicesHandler(object):
                 )
             # We need to know the members associated with this event.room_id,
             # if any.
-            member_list = yield self.store.get_room_members(
-                room_id=event.room_id,
-                membership=Membership.JOIN
-            )
+            member_list = yield self.store.get_users_in_room(event.room_id)
 
         services = yield self.store.get_app_services()
         interested_list = [