summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2017-02-01 11:59:17 +0000
committerErik Johnston <erik@matrix.org>2017-02-01 11:59:17 +0000
commitf6124311fd8893a306e7443cd725b1c25b007d39 (patch)
tree515e965da846ff675750c5cff5d2c816580806dc /synapse
parentMerge pull request #1867 from matrix-org/erikj/member_index (diff)
downloadsynapse-f6124311fd8893a306e7443cd725b1c25b007d39.tar.xz
Add m.room.member type to query
Diffstat (limited to '')
-rw-r--r--synapse/storage/roommember.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/roommember.py b/synapse/storage/roommember.py
index 10f7c7a4bc..3a99dc2349 100644
--- a/synapse/storage/roommember.py
+++ b/synapse/storage/roommember.py
@@ -266,7 +266,7 @@ class RoomMemberStore(SQLBaseStore):
             " ON m.event_id = c.event_id "
             " AND m.room_id = c.room_id "
             " AND m.user_id = c.state_key"
-            " WHERE %(where)s"
+            " WHERE c.type = 'm.room.member' AND %(where)s"
         ) % {
             "where": where_clause,
         }