From c70c2631f0dc1db46fa5e6088605e21f5e3743ba Mon Sep 17 00:00:00 2001 From: James Cook Date: Thu, 15 Apr 2010 16:19:39 -0700 Subject: Remove old hack to chat "refreshname" to trigger name tag updates --- indra/newview/llpanelme.cpp | 3 --- indra/newview/llviewermessage.cpp | 14 -------------- 2 files changed, 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(chatter); - if (avatar) - { - avatar->clearNameTag(); - } - } - // Look for the start of typing so we can put "..." in the bubbles. if (CHAT_TYPE_START == chat.mChatType) { -- cgit v1.2.3