[Store] Include invite
This commit is contained in:
parent
ffd4eb508e
commit
a97e96bf72
|
|
@ -601,7 +601,7 @@ class Store {
|
||||||
/// the user [userID]. Returns null if there is none.
|
/// the user [userID]. Returns null if there is none.
|
||||||
Future<String> getDirectChatRoomID(String userID) async {
|
Future<String> getDirectChatRoomID(String userID) async {
|
||||||
List<Map<String, dynamic>> res = await db.rawQuery(
|
List<Map<String, dynamic>> res = await db.rawQuery(
|
||||||
"SELECT id FROM Rooms WHERE direct_chat_matrix_id=? AND membership='join' LIMIT 1",
|
"SELECT id FROM Rooms WHERE direct_chat_matrix_id=? AND membership!='leave' LIMIT 1",
|
||||||
[userID]);
|
[userID]);
|
||||||
if (res.length != 1) return null;
|
if (res.length != 1) return null;
|
||||||
return res[0]["id"];
|
return res[0]["id"];
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue