From d36c13a853e95605f78e81dfce26c2eb52ffb1fa Mon Sep 17 00:00:00 2001 From: Christian Date: Tue, 11 Jun 2019 07:11:53 +0000 Subject: [PATCH] Fix wrong table name --- lib/src/Room.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }