summary refs log tree commit diff
path: root/src/ui/UserProfile.cpp
diff options
context:
space:
mode:
authorDeepBlueV7.X <nicolas.werner@hotmail.de>2022-03-29 20:54:45 +0200
committerGitHub <noreply@github.com>2022-03-29 20:54:45 +0200
commitf9e294ce0c34bbf820320bbe124de2175aefa0ee (patch)
tree6e32446bbbae091977c8103a502a27ce924df340 /src/ui/UserProfile.cpp
parentAvoid empty membership events (diff)
parentAdd backend for new room creation dialogs (diff)
downloadnheko-f9e294ce0c34bbf820320bbe124de2175aefa0ee.tar.xz
Merge pull request #1019 from maltee1/qml_createroom
CreateRoom dialog in QML
Diffstat (limited to 'src/ui/UserProfile.cpp')
-rw-r--r--src/ui/UserProfile.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/ui/UserProfile.cpp b/src/ui/UserProfile.cpp

index 898b56fd..db50b050 100644 --- a/src/ui/UserProfile.cpp +++ b/src/ui/UserProfile.cpp
@@ -53,6 +53,9 @@ UserProfile::UserProfile(QString roomid, emit verificationStatiChanged(); }); + connect(this, &UserProfile::devicesChanged, [this]() { + nhlog::net()->critical("Device list: {}", deviceList_.rowCount()); + }); fetchDeviceList(this->userid_); } @@ -187,7 +190,6 @@ UserProfile::fetchDeviceList(const QString &userID) nhlog::net()->warn("failed to query device keys: {},{}", mtx::errors::to_string(err->matrix_error.errcode), static_cast<int>(err->status_code)); - return; } // Ensure local key cache is up to date @@ -201,7 +203,6 @@ UserProfile::fetchDeviceList(const QString &userID) nhlog::net()->warn("failed to query device keys: {},{}", mtx::errors::to_string(err->matrix_error.errcode), static_cast<int>(err->status_code)); - return; } emit verificationStatiChanged(); @@ -313,9 +314,15 @@ UserProfile::kickUser() } void +UserProfile::startChat(bool encryption) +{ + ChatPage::instance()->startChat(this->userid_, encryption); +} + +void UserProfile::startChat() { - ChatPage::instance()->startChat(this->userid_); + ChatPage::instance()->startChat(this->userid_, std::nullopt); } void