[Store] Fix query bug
This commit is contained in:
parent
eb68a418c0
commit
f2bbe978a8
|
@ -340,11 +340,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>> eventRes = await db.rawQuery(
|
List<Map<String, dynamic>> eventRes = await db.rawQuery(
|
||||||
"SELECT * " +
|
"SELECT * " + " FROM Events " + " WHERE room_id=?" + " GROUP BY id",
|
||||||
" FROM Events " +
|
|
||||||
" WHERE room_id=?" +
|
|
||||||
" GROUP BY id " +
|
|
||||||
" ORDER BY origin_server_ts DESC",
|
|
||||||
[room.id]);
|
[room.id]);
|
||||||
|
|
||||||
List<Event> eventList = [];
|
List<Event> eventList = [];
|
||||||
|
|
Loading…
Reference in a new issue