[Store] remove s of Users as the table actually is named User
Took 3 minutes
This commit is contained in:
parent
b57542b65c
commit
547e9c8f3a
|
@ -464,7 +464,7 @@ class Store {
|
||||||
/// Returns a list of events for the given room and sets all participants.
|
/// Returns a list of events for the given room and sets all participants.
|
||||||
Future<List<Event>> getEventList(Room room) async {
|
Future<List<Event>> getEventList(Room room) async {
|
||||||
List<Map<String, dynamic>> memberRes = await db.rawQuery(
|
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 = {};
|
Map<String, User> userMap = {};
|
||||||
for (num i = 0; i < memberRes.length; i++)
|
for (num i = 0; i < memberRes.length; i++)
|
||||||
userMap[memberRes[i]["matrix_id"]] = User.fromJson(memberRes[i], room);
|
userMap[memberRes[i]["matrix_id"]] = User.fromJson(memberRes[i], room);
|
||||||
|
|
Loading…
Reference in a new issue