From e7564396fb674ea0826134141f115a6db25e6005 Mon Sep 17 00:00:00 2001 From: Thulinma Date: Sun, 5 Sep 2021 18:15:25 +0200 Subject: 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) --- src/ui/UserProfile.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/ui/UserProfile.cpp') 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); +} -- cgit 1.5.1