mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 11:00:48 +03:00
Make matrix link chat invites direct chats
This commit is contained in:
parent
6313ecb7d4
commit
be49d184be
1 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue