summary refs log tree commit diff
path: root/src/ui/UserProfile.cpp
diff options
context:
space:
mode:
authorThulinma <jaron@vietors.com>2021-09-05 18:15:25 +0200
committerThulinma <jaron@vietors.com>2021-09-05 19:05:43 +0200
commite7564396fb674ea0826134141f115a6db25e6005 (patch)
tree01216643263cc1bbf55b9dd1bb33208e366a53d5 /src/ui/UserProfile.cpp
parentMerge pull request #709 from tastytea/condense-blockquotes (diff)
downloadnheko-e7564396fb674ea0826134141f115a6db25e6005.tar.xz
Improvements to user profiles:
- Set a minimum width on the profile window (avatar size + margins)
- Made avatar editing a separate button, so you can zoom in on your own avatars
- Added hover text to avatar/displayname change buttons, which clarify where they will apply for global/room-specific profiles
- Added display of room name for room-specific profiles, with hover text that explains what that means.
- Added way to open global profile for users from their room-specific profiles (globe button next to room name)
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); +}