From a97e96bf7244ff6319134ed27bddf62aa2b12028 Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Fri, 26 Jul 2019 14:57:56 +0200 Subject: [PATCH] [Store] Include invite --- 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 8d00b25..45b3a28 100644 --- a/lib/src/Store.dart +++ b/lib/src/Store.dart @@ -601,7 +601,7 @@ class Store { /// the user [userID]. Returns null if there is none. Future getDirectChatRoomID(String userID) async { List> 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]); if (res.length != 1) return null; return res[0]["id"];