summary refs log tree commit diff
path: root/src/ui/UserProfile.cpp
diff options
context:
space:
mode:
authorDeepBlueV7.X <nicolas.werner@hotmail.de>2021-09-05 17:18:36 +0000
committerGitHub <noreply@github.com>2021-09-05 17:18:36 +0000
commit8f1fa2ae4e5036a82b8803bc9e68b1ecc46d03c6 (patch)
tree01216643263cc1bbf55b9dd1bb33208e366a53d5 /src/ui/UserProfile.cpp
parentMerge pull request #709 from tastytea/condense-blockquotes (diff)
parentImprovements to user profiles: (diff)
downloadnheko-8f1fa2ae4e5036a82b8803bc9e68b1ecc46d03c6.tar.xz
Merge pull request #712 from Thulinma/improvedProfiles
Improvements to user profiles
Diffstat (limited to 'src/ui/UserProfile.cpp')
-rw-r--r--src/ui/UserProfile.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/ui/UserProfile.cpp b/src/ui/UserProfile.cpp

index 3d9c4b6a..a3f42671 100644 --- a/src/ui/UserProfile.cpp +++ b/src/ui/UserProfile.cpp
@@ -409,7 +409,8 @@ UserProfile::getGlobalProfileData() userid_.toStdString(), [this](const mtx::responses::Profile &res, mtx::http::RequestErr err) { if (err) { - nhlog::net()->warn("failed to retrieve own profile info"); + nhlog::net()->warn("failed to retrieve profile info for {}", + userid_.toStdString()); return; } @@ -418,3 +419,10 @@ UserProfile::getGlobalProfileData() emit avatarUrlChanged(); }); } + +void +UserProfile::openGlobalProfile() +{ + UserProfile *userProfile = new UserProfile("", userid_, manager, model); + emit manager->openProfile(userProfile); +}