From f6124311fd8893a306e7443cd725b1c25b007d39 Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Wed, 1 Feb 2017 11:59:17 +0000 Subject: [PATCH] Add m.room.member type to query --- synapse/storage/roommember.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/synapse/storage/roommember.py b/synapse/storage/roommember.py index 10f7c7a4b..3a99dc234 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, }