diff options
author | Merov Linden <merov@lindenlab.com> | 2012-10-03 16:57:48 -0700 |
---|---|---|
committer | Merov Linden <merov@lindenlab.com> | 2012-10-03 16:57:48 -0700 |
commit | ba5760a4d9d110890aab26a394479b36e60915d7 (patch) | |
tree | acad21a7c576de056bfa21a37027a673feab8fad /indra/newview/llavataractions.cpp | |
parent | bd64c483639ae33518609398fce7c51ddc73dae7 (diff) | |
parent | f2510ca0d629a2cd6cd85588698672f5a0c4e64a (diff) |
Pull merge from richard/viewer-chui
Diffstat (limited to 'indra/newview/llavataractions.cpp')
-rwxr-xr-x | indra/newview/llavataractions.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/indra/newview/llavataractions.cpp b/indra/newview/llavataractions.cpp index a76dbcac53..248685b964 100755 --- a/indra/newview/llavataractions.cpp +++ b/indra/newview/llavataractions.cpp @@ -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 ======================================================================================== |