From be49d184be05d97c6a4142e122b405a00e89f27c Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Mon, 25 Jan 2021 15:59:15 +0100 Subject: [PATCH] Make matrix link chat invites direct chats --- src/ChatPage.cpp | 6 ++++-- 1 file 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); }