From 458712fa666c5afbf64b1020b42aa52db852504d Mon Sep 17 00:00:00 2001 From: Erik Kundiman Date: Mon, 30 Dec 2024 18:10:00 +0800 Subject: Relocate leaving muted group chat session snippet to avoid incoming sound & flashing toolbar button. --- indra/newview/llimview.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/indra/newview/llimview.cpp b/indra/newview/llimview.cpp index cfd2535930..5c0e34683a 100644 --- a/indra/newview/llimview.cpp +++ b/indra/newview/llimview.cpp @@ -267,11 +267,6 @@ void notify_of_message(const LLSD& msg, bool is_dnd_msg) } else if(session->isGroupSessionType()) { - if (LLMuteList::getInstance()->isMuted(LLUUID::null, std::string{"Group:" + session_id.asString()})) - { - gIMMgr->leaveSession(session_id); - return; - } user_preferences = gSavedSettings.getString("NotificationGroupChatOptions"); if (!gAgent.isDoNotDisturb() && (gSavedSettings.getBOOL("PlaySoundGroupChatIM"))) { @@ -3199,6 +3194,7 @@ void LLIMMgr::addMessage( if (session) { skip_message &= !session->isGroupSessionType(); // Do not skip group chats... + skip_message |= LLMuteList::getInstance()->isMuted(LLUUID::null, std::string{"Group:" + session_id.asString()}); // unless the group is muted. if (skip_message) { gIMMgr->leaveSession(new_session_id); -- cgit v1.2.3