diff options
author | Merov Linden <merov@lindenlab.com> | 2012-11-05 13:47:49 -0800 |
---|---|---|
committer | Merov Linden <merov@lindenlab.com> | 2012-11-05 13:47:49 -0800 |
commit | 8d6aaf8e8e7c2d0f68bf79100f163803cbdd02bc (patch) | |
tree | f7cf91fc70d00104db0c17aed5fe0cf73c7f3b0d /indra/newview/llimfloater.cpp | |
parent | 749416fa7f9543c2b8a06e186b80c5e8ae354cb0 (diff) |
CHUI-468 : Suppress LLIMFloater::onParticipantsListChanged(). Not useful anymore.
Diffstat (limited to 'indra/newview/llimfloater.cpp')
-rw-r--r-- | indra/newview/llimfloater.cpp | 68 |
1 files changed, 0 insertions, 68 deletions
diff --git a/indra/newview/llimfloater.cpp b/indra/newview/llimfloater.cpp index 8742460689..d9c201d856 100644 --- a/indra/newview/llimfloater.cpp +++ b/indra/newview/llimfloater.cpp @@ -220,7 +220,6 @@ void LLIMFloater::sendMsg(const std::string& msg) LLIMFloater::~LLIMFloater() { - mParticipantsListRefreshConnection.disconnect(); mVoiceChannelStateChangeConnection.disconnect(); if(LLVoiceClient::instanceExists()) { @@ -274,22 +273,6 @@ void LLIMFloater::initIMFloater() { std::string session_name(LLIMModel::instance().getName(mSessionID)); updateSessionName(session_name); - - // For ad hoc conferences we should update the title with participants names. - if ((IM_SESSION_INVITE == mDialog && !gAgent.isInGroup(mSessionID)) - || mDialog == IM_SESSION_CONFERENCE_START) - { - if (mParticipantsListRefreshConnection.connected()) - { - mParticipantsListRefreshConnection.disconnect(); - } - - // CHUI-441: We shouldn't have any avatar_list anymore... see floater_im_session.xml - // *TODO: Track and delete if not necessary anymore - LLAvatarList* avatar_list = getChild<LLAvatarList>("speakers_list"); - mParticipantsListRefreshConnection = avatar_list->setRefreshCompleteCallback( - boost::bind(&LLIMFloater::onParticipantsListChanged, this, _1)); - } } } @@ -526,57 +509,6 @@ void LLIMFloater::updateSessionName(const std::string& name) mTypingStart.setArg("[NAME]", name); } -void LLIMFloater::onParticipantsListChanged(LLUICtrl* ctrl) -{ - LLAvatarList* avatar_list = dynamic_cast<LLAvatarList*>(ctrl); - if (!avatar_list) - { - return; - } - - std::vector<LLSD> participants_uuids; - uuid_vec_t temp_uuids; // uuids vector for building the added participants' names string - LLUUID unfound_id; - - avatar_list->getValues(participants_uuids); - - // Check participants names in LLAvatarNameCache - for (std::vector<LLSD>::const_iterator it = participants_uuids.begin(); it != participants_uuids.end(); ++it) - { - const LLUUID& id = it->asUUID(); - LLAvatarName av_name; - if (!LLAvatarNameCache::get(id, &av_name)) - { - // Keep the first not found avatar id - if (unfound_id.isNull()) - { - unfound_id = id; - } - } - else - { - // Add the participant to the list of existing names - temp_uuids.push_back(id); - } - } - - if (temp_uuids.size() != 0) - { - // Build the session name and update it - std::string ui_title; - LLAvatarActions::buildResidentsString(temp_uuids, ui_title); - updateSessionName(ui_title); - } - - if (unfound_id.notNull()) - { - // If a name is not found in cache, request it and continue the process recursively - // until all ids are resolved into names. - LLAvatarNameCache::get(unfound_id, boost::bind(&LLIMFloater::onParticipantsListChanged, this, avatar_list)); - } -} - - //static LLIMFloater* LLIMFloater::show(const LLUUID& session_id) { |