[Store] remove s of Users as the table actually is named User

Took 3 minutes
This commit is contained in:
Marcel 2019-07-03 15:43:17 +02:00
parent b57542b65c
commit 547e9c8f3a

View file

@ -464,7 +464,7 @@ class Store {
/// Returns a list of events for the given room and sets all participants.
Future<List<Event>> getEventList(Room room) async {
List<Map<String, dynamic>> memberRes = await db.rawQuery(
"SELECT * " + " FROM Users " + " WHERE users.chat_id=?", [room.id]);
"SELECT * " + " FROM User " + " WHERE users.chat_id=?", [room.id]);
Map<String, User> userMap = {};
for (num i = 0; i < memberRes.length; i++)
userMap[memberRes[i]["matrix_id"]] = User.fromJson(memberRes[i], room);