diff options
-rw-r--r-- | indra/newview/llviewerdisplayname.cpp | 13 | ||||
-rw-r--r-- | indra/newview/skins/default/xui/en/notifications.xml | 7 |
2 files changed, 17 insertions, 3 deletions
diff --git a/indra/newview/llviewerdisplayname.cpp b/indra/newview/llviewerdisplayname.cpp index 84697f93b6..9739c7fbc1 100644 --- a/indra/newview/llviewerdisplayname.cpp +++ b/indra/newview/llviewerdisplayname.cpp @@ -42,6 +42,7 @@ #include "llavatarnamecache.h" #include "llhttpclient.h" #include "llhttpnode.h" +#include "llnotificationsutil.h" namespace LLViewerDisplayName { @@ -124,15 +125,21 @@ class LLDisplayNameUpdate : public LLHTTPNode { LLSD body = input["body"]; LLUUID agent_id = body["agent_id"]; - - llinfos << "JAMESDEBUG LLDisplayNameUpdate agent_id " - << agent_id << llendl; + std::string slid = body["sl_id"]; + std::string old_display_name = body["old_display_name"]; + std::string new_display_name = body["new_display_name"]; // force re-request of this agent's name data LLAvatarNameCache::erase(agent_id); // force name tag to update LLVOAvatar::invalidateNameTag(agent_id); + + LLSD args; + args["OLD_NAME"] = old_display_name; + args["SLID"] = slid; + args["NEW_NAME"] = new_display_name; + LLNotificationsUtil::add("DisplayNameUpdate", args); } }; diff --git a/indra/newview/skins/default/xui/en/notifications.xml b/indra/newview/skins/default/xui/en/notifications.xml index 0e14b06407..e57b21b05c 100644 --- a/indra/newview/skins/default/xui/en/notifications.xml +++ b/indra/newview/skins/default/xui/en/notifications.xml @@ -3075,6 +3075,13 @@ Change your display name? </notification> <notification + icon="notifytip.tga" + name="DisplayNameUpdate" + type="notifytip"> + [OLD_NAME] ([SLID]) is now known as [NEW_NAME]. + </notification> + + <notification icon="alertmodal.tga" name="OfferTeleport" type="alertmodal"> |