diff options
| author | Richard Linden <none@none> | 2010-06-03 14:15:11 -0700 |
|---|---|---|
| committer | Richard Linden <none@none> | 2010-06-03 14:15:11 -0700 |
| commit | f79ac664dd6eead75368ced40110b6f0474aa92e (patch) | |
| tree | b24c616c96d32e0b20c5dd0a217701922f884ee6 /indra/newview/lltoastgroupnotifypanel.cpp | |
| parent | e2b8c1c699f75e234776beda939205a247fb1bc3 (diff) | |
| parent | 56e0d59ebcc98515c24f7706569b6e7362981432 (diff) | |
merge
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 7eac3867d5..ab4071110e 100644 --- a/indra/newview/lltoastgroupnotifypanel.cpp +++ b/indra/newview/lltoastgroupnotifypanel.cpp @@ -42,6 +42,7 @@ #include "llnotifications.h" #include "llviewertexteditor.h" +#include "llavatarnamecache.h" #include "lluiconstants.h" #include "llui.h" #include "llviewercontrol.h" @@ -73,7 +74,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"); |
