diff options
author | Merov Linden <merov@lindenlab.com> | 2010-10-22 17:39:03 -0700 |
---|---|---|
committer | Merov Linden <merov@lindenlab.com> | 2010-10-22 17:39:03 -0700 |
commit | a0714f01804a2a2220bd72c3adf06f097ad21b73 (patch) | |
tree | db304a8eca349020b48ae927fd8a534264a6ed83 /indra/newview/lltoastgroupnotifypanel.cpp | |
parent | e3ecffc180ae50a0e8b726a061ec39cbe591326e (diff) | |
parent | de6f7e19c44d267d3224c56941c2ab27677c406f (diff) |
Merge with viewer-development
Diffstat (limited to 'indra/newview/lltoastgroupnotifypanel.cpp')
-rw-r--r-- | indra/newview/lltoastgroupnotifypanel.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/indra/newview/lltoastgroupnotifypanel.cpp b/indra/newview/lltoastgroupnotifypanel.cpp index 78cc96b353..371aad64bb 100644 --- a/indra/newview/lltoastgroupnotifypanel.cpp +++ b/indra/newview/lltoastgroupnotifypanel.cpp @@ -36,6 +36,7 @@ #include "llnotifications.h" #include "llviewertexteditor.h" +#include "llavatarnamecache.h" #include "lluiconstants.h" #include "llui.h" #include "llviewercontrol.h" @@ -67,7 +68,11 @@ LLToastGroupNotifyPanel::LLToastGroupNotifyPanel(LLNotificationPtr& notification pGroupIcon->setValue(groupData.mInsigniaID); //header title - const std::string& from_name = payload["sender_name"].asString(); + std::string from_name = payload["sender_name"].asString(); + if (LLAvatarNameCache::useDisplayNames()) + { + from_name = LLCacheName::buildUsername(from_name); + } std::stringstream from; from << from_name << "/" << groupData.mName; LLTextBox* pTitleText = getChild<LLTextBox>("title"); |