summary refs log tree commit diff
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-01-25 15:59:15 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2021-01-25 15:59:15 +0100
commitbe49d184be05d97c6a4142e122b405a00e89f27c (patch)
tree9ee02aed40a34bb435c73898f78084c42127ccdf
parentTreat empty secrets as no secret (diff)
downloadnheko-be49d184be05d97c6a4142e122b405a00e89f27c.tar.xz
Make matrix link chat invites direct chats
-rw-r--r--src/ChatPage.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ChatPage.cpp b/src/ChatPage.cpp
index 3df67fcc..4e472a3a 100644
--- a/src/ChatPage.cpp
+++ b/src/ChatPage.cpp
@@ -1314,8 +1314,10 @@ ChatPage::startChat(QString userid)
         mtx::requests::CreateRoom req;
         req.preset     = mtx::requests::Preset::PrivateChat;
         req.visibility = mtx::common::RoomVisibility::Private;
-        if (utils::localUser() != userid)
-                req.invite = {userid.toStdString()};
+        if (utils::localUser() != userid) {
+                req.invite    = {userid.toStdString()};
+                req.is_direct = true;
+        }
         emit ChatPage::instance()->createRoom(req);
 }