fixed waiting bug for EXT-4976 IM Window with 'Show End of Last Conversation' turned on, doesnt show Avatar name, or correct information

--HG--
branch : product-engine
meow-7.2.2
Igor Borovkov 2010-02-10 13:04:18 +02:00
parent 8288530c45
commit 3d8caa79a7
1 changed files with 6 additions and 1 deletions

View File

@ -181,7 +181,12 @@ void LLAvatarActions::startIM(const LLUUID& id)
return;
std::string name;
gCacheName->getFullName(id, name);
if (!gCacheName->getFullName(id, name))
{
gCacheName->get(id, FALSE, boost::bind(&LLAvatarActions::startIM, id));
return;
}
LLUUID session_id = gIMMgr->addSession(name, IM_NOTHING_SPECIAL, id);
if (session_id != LLUUID::null)
{