summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorJames Cook <james@lindenlab.com>2010-04-15 16:19:39 -0700
committerJames Cook <james@lindenlab.com>2010-04-15 16:19:39 -0700
commitc70c2631f0dc1db46fa5e6088605e21f5e3743ba (patch)
treeef2bbb17ac2c5f4dc9e9b23c4fc9fd11293528ee /indra/newview
parent80916b3f9597557811addc377d7b7b8c4b56c277 (diff)
Remove old hack to chat "refreshname" to trigger name tag updates
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llpanelme.cpp3
-rw-r--r--indra/newview/llviewermessage.cpp14
2 files changed, 0 insertions, 17 deletions
diff --git a/indra/newview/llpanelme.cpp b/indra/newview/llpanelme.cpp
index aa19952317..d81d84767b 100644
--- a/indra/newview/llpanelme.cpp
+++ b/indra/newview/llpanelme.cpp
@@ -307,9 +307,6 @@ void LLPanelMyProfileEdit::onCacheSetName(bool success,
{
if (success)
{
- // HACK: Use chat to invalidate names
- send_chat_from_viewer("refreshname", CHAT_TYPE_NORMAL, 0);
-
// Re-fetch my name, as it may have been sanitized by the service
LLAvatarNameCache::get(getAvatarId(),
boost::bind(&LLPanelMyProfileEdit::onNameCache, this, _1, _2));
diff --git a/indra/newview/llviewermessage.cpp b/indra/newview/llviewermessage.cpp
index 9cecf1fcca..13f52d8db7 100644
--- a/indra/newview/llviewermessage.cpp
+++ b/indra/newview/llviewermessage.cpp
@@ -2731,20 +2731,6 @@ void process_chat_from_simulator(LLMessageSystem *msg, void **user_data)
}
chat.mText = mesg;
- // IDEVO HACK Use chat to invalidate names
- if (chat.mSourceType == CHAT_SOURCE_AGENT
- && chat.mText == "refreshname")
- {
- LLAvatarNameCache::erase(chat.mFromID);
-
- // force name tag to update
- LLVOAvatar* avatar = dynamic_cast<LLVOAvatar*>(chatter);
- if (avatar)
- {
- avatar->clearNameTag();
- }
- }
-
// Look for the start of typing so we can put "..." in the bubbles.
if (CHAT_TYPE_START == chat.mChatType)
{