DEV-50013 Use new cache to get legacy name for Vivox

meow-7.2.2
James Cook 2010-05-24 15:36:30 -07:00
parent d674d11f89
commit 01fa137993
1 changed files with 6 additions and 2 deletions

View File

@ -2658,12 +2658,16 @@ void LLVivoxVoiceClient::buildLocalAudioUpdates(std::ostringstream &stream)
void LLVivoxVoiceClient::checkFriend(const LLUUID& id)
{
std::string name;
buddyListEntry *buddy = findBuddy(id);
// Make sure we don't add a name before it's been looked up.
if(gCacheName->getFullName(id, name))
LLAvatarName av_name;
if(LLAvatarNameCache::get(id, &av_name))
{
// *NOTE: For now, we feed legacy names to Vivox because I don't know
// if their service can support a mix of new and old clients with
// different sorts of names.
std::string name = av_name.getLegacyName();
const LLRelationship* relationInfo = LLAvatarTracker::instance().getBuddyInfo(id);
bool canSeeMeOnline = false;