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++)