summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorOz Linden <oz@lindenlab.com>2012-02-09 11:53:14 -0500
committerOz Linden <oz@lindenlab.com>2012-02-09 11:53:14 -0500
commite836d90ebb8d84f84c12f2ff9070fcf796aaa2cd (patch)
tree07934e0cce1185d571aadb699bf89a5c49dd1f44 /indra
parentc2e39e9230a8e35f68215a24db3fa79a17e364ca (diff)
parent9003c4c54b82cfa2517d264e9437aa294aef5bb9 (diff)
merge changes for storm-1795
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llimview.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/indra/newview/llimview.cpp b/indra/newview/llimview.cpp
index a856bd0bdc..f621475193 100644
--- a/indra/newview/llimview.cpp
+++ b/indra/newview/llimview.cpp
@@ -2458,7 +2458,10 @@ void LLIMMgr::addMessage(
make_ui_sound("UISndNewIncomingIMSession");
}
- if (!LLMuteList::getInstance()->isMuted(other_participant_id, LLMute::flagTextChat))
+ bool skip_message = (gSavedSettings.getBOOL("VoiceCallsFriendsOnly") &&
+ LLAvatarTracker::instance().getBuddyInfo(other_participant_id) == NULL);
+
+ if (!LLMuteList::getInstance()->isMuted(other_participant_id, LLMute::flagTextChat) && !skip_message)
{
LLIMModel::instance().addMessage(new_session_id, from, other_participant_id, msg);
}