fixed EXT-6476 (waiting).txt chat log file with "(waiting)" instead of avatar name gets created when Offering Teleport from Search Floater

offer teleport action is put on hold until Name Cache gets updated with appropriate avatar name

--HG--
branch : product-engine
meow-7.2.2
Igor Borovkov 2010-03-22 17:02:44 +02:00
parent ccbff3f75a
commit 858d1e9ad0
1 changed files with 8 additions and 0 deletions

View File

@ -161,6 +161,14 @@ void LLAvatarActions::offerTeleport(const LLUUID& invitee)
if (invitee.isNull())
return;
//waiting until Name Cache gets updated with corresponding avatar name
std::string just_to_request_name;
if (!gCacheName->getFullName(invitee, just_to_request_name))
{
gCacheName->get(invitee, FALSE, boost::bind((void (*)(const LLUUID&)) &LLAvatarActions::offerTeleport, invitee));
return;
}
LLDynamicArray<LLUUID> ids;
ids.push_back(invitee);
offerTeleport(ids);