From 39f9b7d90adbdbc9eb6186d93bb6bfd0564c152c Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Sun, 10 Jan 2021 18:36:06 +0100 Subject: Handle matrix scheme Link opening only works on Linux for now. See https://github.com/matrix-org/matrix-doc/pull/2312 --- src/ui/UserProfile.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/ui') diff --git a/src/ui/UserProfile.cpp b/src/ui/UserProfile.cpp index 974aa5cc..6ef82123 100644 --- a/src/ui/UserProfile.cpp +++ b/src/ui/UserProfile.cpp @@ -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 -- cgit 1.4.1