From 7739e9ad01456b95af5bd3638558c97e4c873216 Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Thu, 29 Aug 2019 09:29:24 +0200 Subject: [PATCH] [Store] Fix loadContacts query --- lib/src/Store.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/Store.dart b/lib/src/Store.dart index c2f15ba..15e021a 100644 --- a/lib/src/Store.dart +++ b/lib/src/Store.dart @@ -311,7 +311,7 @@ class Store { /// except users who are in the Room with the ID [exceptRoomID]. Future> loadContacts({String exceptRoomID = ""}) async { List> res = await db.rawQuery( - "SELECT * FROM RoomStates WHERE state_key!=? AND room_id!=? GROUP BY state_key ORDER BY state_key", + "SELECT * FROM RoomStates WHERE state_key LIKE '@%:%' AND state_key!=? AND room_id!=? GROUP BY state_key ORDER BY state_key", [client.userID, exceptRoomID]); List userList = []; for (int i = 0; i < res.length; i++)