Skip to content
Snippets Groups Projects
Commit e1e736ef authored by Leslie Linden's avatar Leslie Linden
Browse files

EXP-752 FIX -- When "View Display Names" is disabled, only my own profile...

EXP-752 FIX -- When "View Display Names" is disabled, only my own profile loads, when I click others profiles

Avatar username is now looked up in the name cache when it is blank, which happens when display names are turned off apparently.

Reviewed by Fredrik.
parent 8c4555d5
No related branches found
No related tags found
No related merge requests found
...@@ -302,8 +302,14 @@ void LLAvatarActions::startConference(const uuid_vec_t& ids) ...@@ -302,8 +302,14 @@ void LLAvatarActions::startConference(const uuid_vec_t& ids)
static void on_avatar_name_show_profile(const LLUUID& agent_id, const LLAvatarName& av_name) static void on_avatar_name_show_profile(const LLUUID& agent_id, const LLAvatarName& av_name)
{ {
llinfos << "opening web profile for " << av_name.mUsername << llendl; std::string username = av_name.mUsername;
std::string url = getProfileURL(av_name.mUsername); if (username.empty())
{
username = LLCacheName::buildUsername(av_name.mDisplayName);
}
llinfos << "opening web profile for " << username << llendl;
std::string url = getProfileURL(username);
// PROFILES: open in webkit window // PROFILES: open in webkit window
LLWeb::loadWebURLInternal(url, "", agent_id.asString()); LLWeb::loadWebURLInternal(url, "", agent_id.asString());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment