diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2021-01-25 15:59:15 +0100 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2021-01-25 15:59:15 +0100 |
commit | be49d184be05d97c6a4142e122b405a00e89f27c (patch) | |
tree | 9ee02aed40a34bb435c73898f78084c42127ccdf | |
parent | Treat empty secrets as no secret (diff) | |
download | nheko-be49d184be05d97c6a4142e122b405a00e89f27c.tar.xz |
Make matrix link chat invites direct chats
-rw-r--r-- | src/ChatPage.cpp | 6 |
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); } |