MAINT-7112 FIXED URI namespace /completename is still affected by the Usernames viewer setting.
parent
09c063947c
commit
e138ca5e78
|
|
@ -166,10 +166,10 @@ void LLAvatarName::setExpires(F64 expires)
|
|||
mExpires = LLFrameTimer::getTotalSeconds() + expires;
|
||||
}
|
||||
|
||||
std::string LLAvatarName::getCompleteName(bool use_parentheses, bool force_use_display_name) const
|
||||
std::string LLAvatarName::getCompleteName(bool use_parentheses, bool force_use_complete_name) const
|
||||
{
|
||||
std::string name;
|
||||
if (sUseDisplayNames || force_use_display_name)
|
||||
if (sUseDisplayNames || force_use_complete_name)
|
||||
{
|
||||
if (mUsername.empty() || mIsDisplayNameDefault)
|
||||
{
|
||||
|
|
@ -180,7 +180,7 @@ std::string LLAvatarName::getCompleteName(bool use_parentheses, bool force_use_d
|
|||
else
|
||||
{
|
||||
name = mDisplayName;
|
||||
if(sUseUsernames)
|
||||
if(sUseUsernames || force_use_complete_name)
|
||||
{
|
||||
if(use_parentheses)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ public:
|
|||
|
||||
// For normal names, returns "James Linden (james.linden)"
|
||||
// When display names are disabled returns just "James Linden"
|
||||
std::string getCompleteName(bool use_parentheses = true, bool force_use_display_name = false) const;
|
||||
std::string getCompleteName(bool use_parentheses = true, bool force_use_complete_name = false) const;
|
||||
|
||||
// Returns "James Linden" or "bobsmith123 Resident" for backwards
|
||||
// compatibility with systems like voice and muting
|
||||
|
|
|
|||
Loading…
Reference in New Issue