Skip to content
Snippets Groups Projects
Commit 0d6af2a0 authored by Eugene Mutavchi's avatar Eugene Mutavchi
Browse files

Additional commit for EXT-3581: the code of updating of speakers order is...

Additional commit for EXT-3581: the code of updating of speakers order is moved to a separate method

--HG--
branch : product-engine
parent 50e5c4c3
No related branches found
No related tags found
No related merge requests found
......@@ -153,6 +153,10 @@ void LLCallFloater::draw()
setModeratorMutedVoice(is_moderator_muted);
}
// Need to resort the participant list if it's in sort by recent speaker order.
if (mPaticipants)
mPaticipants->updateRecentSpeakersOrder();
LLDockableFloater::draw();
}
......
......@@ -247,10 +247,9 @@ void LLPanelGroupControlPanel::draw()
//Remove event does not raised until speakerp->mActivityTimer.hasExpired() is false, see LLSpeakerManager::update()
//so we need update it to raise needed event
mSpeakerManager->update(true);
// Need to refresh participants to display ones not in voice as disabled and
// resort the avatar list if it's in sort by recent speaker order.
// Need to resort the participant list if it's in sort by recent speaker order.
if (mParticipantList)
mParticipantList->refreshVoiceState();
mParticipantList->updateRecentSpeakersOrder();
LLPanelChatControlPanel::draw();
}
......
......@@ -227,6 +227,10 @@ void LLParticipantList::refreshVoiceState()
item->setOnline(!is_in_voice);
}
}
}
void LLParticipantList::updateRecentSpeakersOrder()
{
if (E_SORT_BY_RECENT_SPEAKERS == getSortOrder())
{
// Resort avatar list
......
......@@ -65,6 +65,11 @@ class LLParticipantList
*/
void refreshVoiceState();
/**
* Refreshes the participant list if it's in sort by recent speaker order.
*/
void updateRecentSpeakersOrder();
protected:
/**
* LLSpeakerMgr event handlers
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment