more work on EXT-1649 Groups you chatted in recently show up in the Recent People tab

previous place for adding recent people was wrong...move this to LLIMSession.

--HG--
branch : product-engine
meow-7.2.2
Yuri Chebotarev 2010-01-05 17:56:13 +02:00
parent a2fb58b8db
commit 71c0973a1e
2 changed files with 4 additions and 3 deletions

View File

@ -382,6 +382,10 @@ void LLIMModel::LLIMSession::addMessage(const std::string& from, const LLUUID& f
mSpeakers->speakerChatted(from_id);
mSpeakers->setSpeakerTyping(from_id, FALSE);
}
if( mSessionType == P2P_SESSION ||
mSessionType == ADHOC_SESSION)
LLRecentPeople::instance().add(from_id);
}
void LLIMModel::LLIMSession::addMessagesFromHistory(const std::list<LLSD>& history)

View File

@ -43,7 +43,6 @@
#include "llviewerobjectlist.h"
#include "llvoavatar.h"
#include "llworld.h"
#include "llrecentpeople.h"
const F32 SPEAKER_TIMEOUT = 10.f; // seconds of not being on voice channel before removed from list of active speakers
const LLColor4 INACTIVE_COLOR(0.3f, 0.3f, 0.3f, 0.5f);
@ -409,8 +408,6 @@ void LLSpeakerMgr::speakerChatted(const LLUUID& speaker_id)
{
speakerp->mLastSpokeTime = mSpeechTimer.getElapsedTimeF32();
speakerp->mHasSpoken = TRUE;
LLRecentPeople::instance().add(speaker_id);
}
}