Fix wrong table name

This commit is contained in:
Christian 2019-06-11 07:11:53 +00:00
parent 0be37ec173
commit d36c13a853

View file

@ -185,7 +185,7 @@ class Room {
static Future<Room> getRoomById(String id, Client matrix) async {
List<Map<String, dynamic>> 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);
}