Skip to content
Snippets Groups Projects
Commit be9bae60 authored by Merov Linden's avatar Merov Linden
Browse files

STORM-1045 : pull into viewer-development

parents 1ec800fb 561e0504
No related branches found
No related tags found
No related merge requests found
...@@ -156,6 +156,7 @@ Ann Congrejo ...@@ -156,6 +156,7 @@ Ann Congrejo
CT-193 CT-193
Ardy Lay Ardy Lay
VWR-19499 VWR-19499
VWR-24917
Argent Stonecutter Argent Stonecutter
VWR-68 VWR-68
Armin Weatherwax Armin Weatherwax
......
...@@ -90,14 +90,16 @@ void LLAvatarName::fromLLSD(const LLSD& sd) ...@@ -90,14 +90,16 @@ void LLAvatarName::fromLLSD(const LLSD& sd)
std::string LLAvatarName::getCompleteName() const std::string LLAvatarName::getCompleteName() const
{ {
std::string name; std::string name;
if (!mUsername.empty()) if (mUsername.empty() || mIsDisplayNameDefault)
// If the display name feature is off
// OR this particular display name is defaulted (i.e. based on user name),
// then display only the easier to read instance of the person's name.
{ {
name = mDisplayName + " (" + mUsername + ")"; name = mDisplayName;
} }
else else
{ {
// ...display names are off, legacy name is in mDisplayName name = mDisplayName + " (" + mUsername + ")";
name = mDisplayName;
} }
return name; return name;
} }
......
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