Handle matrix scheme

Link opening only works on Linux for now.

See https://github.com/matrix-org/matrix-doc/pull/2312
This commit is contained in:
Nicolas Werner 2021-01-10 18:36:06 +01:00
parent cc9de7f3b0
commit 39f9b7d90a
7 changed files with 216 additions and 17 deletions

View file

@ -202,12 +202,7 @@ UserProfile::kickUser()
void
UserProfile::startChat()
{
mtx::requests::CreateRoom req;
req.preset = mtx::requests::Preset::PrivateChat;
req.visibility = mtx::requests::Visibility::Private;
if (utils::localUser() != this->userid_)
req.invite = {this->userid_.toStdString()};
emit ChatPage::instance()->createRoom(req);
ChatPage::instance()->startChat(this->userid_);
}
void