Fix roomList query
This commit is contained in:
parent
db3c3f0c6d
commit
9bd377c4be
|
@ -467,10 +467,9 @@ class Store {
|
|||
"SELECT rooms.*, events.origin_server_ts, events.content_json, events.type, events.sender, events.status, events.state_key " +
|
||||
" FROM Rooms rooms LEFT JOIN Events events " +
|
||||
" ON rooms.id=events.chat_id " +
|
||||
" WHERE rooms.id!='' " +
|
||||
" AND rooms.membership" +
|
||||
" WHERE rooms.membership" +
|
||||
(onlyLeft ? "=" : "!=") +
|
||||
"'left' " +
|
||||
"'leave' " +
|
||||
(onlyDirect ? " AND rooms.direct_chat_matrix_id!= '' " : "") +
|
||||
(onlyGroups ? " AND rooms.direct_chat_matrix_id= '' " : "") +
|
||||
" GROUP BY rooms.id " +
|
||||
|
|
Loading…
Reference in a new issue