diff --git a/lib/src/Room.dart b/lib/src/Room.dart index 191cd8d..dda989d 100644 --- a/lib/src/Room.dart +++ b/lib/src/Room.dart @@ -185,7 +185,7 @@ class Room { static Future getRoomById(String id, Client matrix) async { List> res = - await matrix.store.db.rawQuery("SELECT * FROM Chats WHERE id=?", [id]); + await matrix.store.db.rawQuery("SELECT * FROM Rooms WHERE id=?", [id]); if (res.length != 1) return null; return getRoomFromTableRow(res[0], matrix); }