summary refs log tree commit diff
path: root/src/ui/UserProfile.cpp
diff options
context:
space:
mode:
authorDeepBlueV7.X <nicolas.werner@hotmail.de>2021-01-10 23:29:30 +0100
committerGitHub <noreply@github.com>2021-01-10 23:29:30 +0100
commitd8fb5daac13bdf2d549f5217eab111ffb65a2e07 (patch)
treeaeeee1baa42e2ebf46312a3e8484c22be691195e /src/ui/UserProfile.cpp
parentMerge pull request #369 from trilene/master (diff)
parentHandle matrix scheme (diff)
downloadnheko-d8fb5daac13bdf2d549f5217eab111ffb65a2e07.tar.xz
Merge pull request #370 from Nheko-Reborn/matrix-scheme
Handle matrix scheme
Diffstat (limited to 'src/ui/UserProfile.cpp')
-rw-r--r--src/ui/UserProfile.cpp7
1 files changed, 1 insertions, 6 deletions
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