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