diff --git a/lib/src/Store.dart b/lib/src/Store.dart index 08214b7..6d4616a 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);