diff options
author | Mnikolenko ProductEngine <mnikolenko@productengine.com> | 2015-01-30 11:33:23 +0200 |
---|---|---|
committer | Mnikolenko ProductEngine <mnikolenko@productengine.com> | 2015-01-30 11:33:23 +0200 |
commit | 301714944a7cf6cb4ddd160b66d231bb992d5162 (patch) | |
tree | 55f66baaa2b0d439125e62b4265782c765b5881f | |
parent | 20d70dca947eb4ce9f9d059df5a26811fb61dbbe (diff) |
MAINT-1016 FIXED Don't remove other chat participant from mute list if it's group chat.
-rwxr-xr-x | indra/newview/llimview.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/indra/newview/llimview.cpp b/indra/newview/llimview.cpp index 5d3a11e245..b8b6bdaa11 100755 --- a/indra/newview/llimview.cpp +++ b/indra/newview/llimview.cpp @@ -1295,8 +1295,15 @@ void LLIMModel::sendMessage(const std::string& utf8_text, gAgent.sendReliableMessage(); } + bool is_group_chat = false; + LLIMModel::LLIMSession* session = LLIMModel::getInstance()->findIMSession(im_session_id); + if(session) + { + is_group_chat = session->isGroupSessionType(); + } + // If there is a mute list and this is not a group chat... - if ( LLMuteList::getInstance() ) + if ( LLMuteList::getInstance() && !is_group_chat) { // ... the target should not be in our mute list for some message types. // Auto-remove them if present. @@ -1345,7 +1352,6 @@ void LLIMModel::sendMessage(const std::string& utf8_text, if (is_not_group_id) { - LLIMModel::LLIMSession* session = LLIMModel::getInstance()->findIMSession(im_session_id); if( session == 0)//??? shouldn't really happen { LLRecentPeople::instance().add(other_participant_id); |