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-enginemeow-7.2.2
parent
a2fb58b8db
commit
71c0973a1e
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue