Add brackets to make get room name / alias work

This commit is contained in:
David Baker 2015-01-26 16:52:47 +00:00
parent efac71d6ca
commit 69a75b7ebe
1 changed files with 2 additions and 2 deletions

View File

@ -402,8 +402,8 @@ class DataStore(RoomMemberStore, RoomStore,
"redacted": del_sql,
}
sql += " AND (s.type = 'm.room.name' AND s.state_key = '')"
sql += " OR s.type = 'm.room.aliases'"
sql += " AND ((s.type = 'm.room.name' AND s.state_key = '')"
sql += " OR s.type = 'm.room.aliases')"
args = (room_id,)
results = yield self._execute_and_decode(sql, *args)