CHUI-165 FIXED Add access to Conversation Log and Chat History from the People floater:

the 'View Chat History' action was updated;
meow-7.2.2
maksymsproductengine 2012-10-04 02:26:48 +03:00
parent 4a02580f49
commit f2510ca0d6
1 changed files with 12 additions and 1 deletions

View File

@ -42,6 +42,7 @@
#include "llappviewer.h" // for gLastVersionChannel
#include "llcachename.h"
#include "llcallingcard.h" // for LLAvatarTracker
#include "llconversationlog.h"
#include "llfloateravatarpicker.h" // for LLFloaterAvatarPicker
#include "llfloatergroupinvite.h"
#include "llfloatergroups.h"
@ -900,7 +901,17 @@ void LLAvatarActions::inviteToGroup(const LLUUID& id)
// static
void LLAvatarActions::viewChatHistory(const LLUUID& id)
{
LLFloaterReg::showInstance("preview_conversation", id, true);
const std::vector<LLConversation>& conversations = LLConversationLog::instance().getConversations();
std::vector<LLConversation>::const_iterator iter = conversations.begin();
for (; iter != conversations.end(); ++iter)
{
if (iter->getParticipantID() == id)
{
LLFloaterReg::showInstance("preview_conversation", iter->getSessionID(), true);
break;
}
}
}
//== private methods ========================================================================================