[Store] Fix query bug

This commit is contained in:
Christian Pauly 2019-08-08 13:31:04 +02:00
parent eb68a418c0
commit f2bbe978a8

View file

@ -340,11 +340,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>> eventRes = await db.rawQuery(
"SELECT * " +
" FROM Events " +
" WHERE room_id=?" +
" GROUP BY id " +
" ORDER BY origin_server_ts DESC",
"SELECT * " + " FROM Events " + " WHERE room_id=?" + " GROUP BY id",
[room.id]);
List<Event> eventList = [];