diff options
author | Eugene Mutavchi <emutavchi@productengine.com> | 2009-12-26 14:32:29 +0200 |
---|---|---|
committer | Eugene Mutavchi <emutavchi@productengine.com> | 2009-12-26 14:32:29 +0200 |
commit | cd9c3afb11f1bd305836fbd4d1c553ba893c1f12 (patch) | |
tree | 1de2a04d602b1e4c74ec4871cbedaf75a3070c88 | |
parent | 4f9563b8292188836476ec750e0292e8efa34627 (diff) |
Fixed low bug EXT-3526(Moderator tag appears for a participant in the p2p voice chat)
--HG--
branch : product-engine
-rw-r--r-- | indra/newview/llparticipantlist.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/indra/newview/llparticipantlist.cpp b/indra/newview/llparticipantlist.cpp index e1491b0889..330e220af3 100644 --- a/indra/newview/llparticipantlist.cpp +++ b/indra/newview/llparticipantlist.cpp @@ -98,6 +98,10 @@ LLParticipantList::LLParticipantList(LLSpeakerMgr* data_source, LLAvatarList* av { mModeratorList.insert(speakerp->mID); } + else + { + mModeratorToRemoveList.insert(speakerp->mID); + } } // we need to exclude agent id for non group chat sort(); @@ -159,7 +163,7 @@ void LLParticipantList::onAvatarListRefreshed(LLUICtrl* ctrl, const LLSD& param) { std::string name = item->getAvatarName(); size_t found = name.find(moderator_indicator); - if (found == std::string::npos) + if (found != std::string::npos) { name.erase(found, moderator_indicator_len); item->setName(name); |