[Store] Fix loadContacts query

This commit is contained in:
Christian Pauly 2019-08-29 09:29:24 +02:00
parent ae573850bd
commit 7739e9ad01
1 changed files with 1 additions and 1 deletions

View File

@ -311,7 +311,7 @@ class Store {
/// except users who are in the Room with the ID [exceptRoomID].
Future<List<User>> loadContacts({String exceptRoomID = ""}) async {
List<Map<String, dynamic>> 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<User> userList = [];
for (int i = 0; i < res.length; i++)