merge changes for storm-1795

master
Oz Linden 2012-02-09 11:53:14 -05:00
commit e836d90ebb
2 changed files with 5 additions and 1 deletions

View File

@ -612,6 +612,7 @@ Jonathan Yap
STORM-1741
STORM-1790
STORM-1788
STORM-1795
STORM-1799
STORM-1796
Kadah Coba

View File

@ -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);
}