This commit is contained in:
Kegan Dougal 2015-03-02 11:23:46 +00:00
parent 377ae369c1
commit cb97ea3ec2

View File

@ -187,7 +187,7 @@ class RoomMemberStore(SQLBaseStore):
)
def _get_rooms_for_user_where_membership_is_txn(self, txn, user_id,
membership_list):
membership_list):
where_clause = "user_id = ? AND (%s)" % (
" OR ".join(["membership = ?" for _ in membership_list]),
)