FIRE-14564 / BUG-7240: When "Only friends and groups can call or IM me" is enabled, group chat posts from non-friends are muted
parent
ee34888d77
commit
40adc15f0f
|
|
@ -2953,7 +2953,11 @@ void LLIMMgr::addMessage(
|
|||
}
|
||||
bool skip_message = false;
|
||||
bool from_linden = LLMuteList::getInstance()->isLinden(from);
|
||||
if (gSavedSettings.getBOOL("VoiceCallsFriendsOnly") && !from_linden)
|
||||
// <FS:Ansariel> FIRE-14564: VoiceCallFriendsOnly prevents receiving of
|
||||
//if (gSavedSettings.getBOOL("VoiceCallsFriendsOnly") && !from_linden)
|
||||
if (gSavedSettings.getBOOL("VoiceCallsFriendsOnly") && !from_linden &&
|
||||
(dialog == IM_NOTHING_SPECIAL || (dialog == IM_SESSION_INVITE && !gAgent.isInGroup(new_session_id))) )
|
||||
// </FS:Ansariel>
|
||||
{
|
||||
// Evaluate if we need to skip this message when that setting is true (default is false)
|
||||
skip_message = (LLAvatarTracker::instance().getBuddyInfo(other_participant_id) == NULL); // Skip non friends...
|
||||
|
|
|
|||
Loading…
Reference in New Issue