fix for low EXT-1649 Groups you chatted in recently show up in the Recent People tab
--HG-- branch : product-enginemeow-7.2.2
parent
0782f64b64
commit
eb880b2a55
|
|
@ -208,7 +208,10 @@ LLIMModel::LLIMSession::LLIMSession(const LLUUID& session_id, const std::string&
|
|||
mSpeakers = new LLIMSpeakerMgr(mVoiceChannel);
|
||||
|
||||
// All participants will be added to the list of people we've recently interacted with.
|
||||
mSpeakers->addListener(&LLRecentPeople::instance(), "add");
|
||||
|
||||
// we need to add only _active_ speakers...so comment this.
|
||||
// may delete this later on cleanup
|
||||
//mSpeakers->addListener(&LLRecentPeople::instance(), "add");
|
||||
|
||||
//we need to wait for session initialization for outgoing ad-hoc and group chat session
|
||||
//correct session id for initiated ad-hoc chat will be received from the server
|
||||
|
|
|
|||
|
|
@ -43,6 +43,7 @@
|
|||
#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);
|
||||
|
|
@ -408,6 +409,8 @@ void LLSpeakerMgr::speakerChatted(const LLUUID& speaker_id)
|
|||
{
|
||||
speakerp->mLastSpokeTime = mSpeechTimer.getElapsedTimeF32();
|
||||
speakerp->mHasSpoken = TRUE;
|
||||
|
||||
LLRecentPeople::instance().add(speaker_id);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue