STORM-1795 Fix logic error

meow-7.2.2
Jonathan Yap 2012-01-20 14:15:31 -05:00
parent da40427a0b
commit d70d57c938
1 changed files with 8 additions and 2 deletions

View File

@ -2458,8 +2458,14 @@ void LLIMMgr::addMessage(
make_ui_sound("UISndNewIncomingIMSession");
}
bool show_message = gSavedSettings.getBOOL("VoiceCallsFriendsOnly") &&
LLAvatarTracker::instance().getBuddyInfo(other_participant_id) == NULL ? false : true;
bool show_message = true;
if (gSavedSettings.getBOOL("VoiceCallsFriendsOnly"))
{
if (LLAvatarTracker::instance().getBuddyInfo(other_participant_id) == NULL)
{
show_messages = false;
}
}
if (!LLMuteList::getInstance()->isMuted(other_participant_id, LLMute::flagTextChat) && show_message)
{