From fab4604b08f2d86498dab98b5acf3511ae5f8c6f Mon Sep 17 00:00:00 2001 From: Marcel Date: Wed, 3 Jul 2019 15:55:06 +0200 Subject: [PATCH] [Store] remove s of Users as the table actually is named User Took 1 minute --- lib/src/Store.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/Store.dart b/lib/src/Store.dart index 423581e4..0b04ae49 100644 --- a/lib/src/Store.dart +++ b/lib/src/Store.dart @@ -464,7 +464,7 @@ class Store { /// Returns a list of events for the given room and sets all participants. Future> getEventList(Room room) async { List> memberRes = await db.rawQuery( - "SELECT * " + " FROM User " + " WHERE users.chat_id=?", [room.id]); + "SELECT * " + " FROM User " + " WHERE User.chat_id=?", [room.id]); Map userMap = {}; for (num i = 0; i < memberRes.length; i++) userMap[memberRes[i]["matrix_id"]] = User.fromJson(memberRes[i], room);