From f2bbe978a87fb162924f5c4870fd8bb0b1b06397 Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Thu, 8 Aug 2019 13:31:04 +0200 Subject: [PATCH] [Store] Fix query bug --- lib/src/Store.dart | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/src/Store.dart b/lib/src/Store.dart index a2520f8..d3f8a06 100644 --- a/lib/src/Store.dart +++ b/lib/src/Store.dart @@ -340,11 +340,7 @@ class Store { /// Returns a list of events for the given room and sets all participants. Future> getEventList(Room room) async { List> 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 eventList = [];