[Store] Fix getRoomList
This commit is contained in:
parent
357a633d0e
commit
3d28b71250
|
@ -363,10 +363,10 @@ class Store {
|
|||
if (onlyDirect && onlyGroups) return [];
|
||||
List<Map<String, dynamic>> res = await db.rawQuery("SELECT * " +
|
||||
" FROM Rooms" +
|
||||
" WHERE rooms.membership" +
|
||||
" WHERE membership" +
|
||||
(onlyLeft ? "=" : "!=") +
|
||||
"'leave' " +
|
||||
" GROUP BY rooms.id ");
|
||||
" GROUP BY room_id ");
|
||||
List<Room> roomList = [];
|
||||
for (num i = 0; i < res.length; i++) {
|
||||
Room room = await Room.getRoomFromTableRow(res[i], client,
|
||||
|
|
Loading…
Reference in a new issue