From 547e9c8f3af318a894c9f8707d9076bf93974b90 Mon Sep 17 00:00:00 2001 From: Marcel Date: Wed, 3 Jul 2019 15:43:17 +0200 Subject: [PATCH] [Store] remove s of Users as the table actually is named User Took 3 minutes --- 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 08214b77..6d4616a0 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 Users " + " WHERE users.chat_id=?", [room.id]); + "SELECT * " + " FROM User " + " WHERE users.chat_id=?", [room.id]); Map userMap = {}; for (num i = 0; i < memberRes.length; i++) userMap[memberRes[i]["matrix_id"]] = User.fromJson(memberRes[i], room);