summaryrefslogtreecommitdiff
path: root/indra/newview/llimview.cpp
diff options
context:
space:
mode:
authorErik Kundiman <erik@megapahit.org>2024-12-30 18:10:00 +0800
committerErik Kundiman <erik@megapahit.org>2024-12-30 18:10:00 +0800
commit458712fa666c5afbf64b1020b42aa52db852504d (patch)
treefe5623f05d0069a36f9d43d20ea9aa0496f03d05 /indra/newview/llimview.cpp
parent078a69ba818694911a5ca2c5e38f03452c0d71a7 (diff)
Relocate leaving muted group chat session snippet
to avoid incoming sound & flashing toolbar button.
Diffstat (limited to 'indra/newview/llimview.cpp')
-rw-r--r--indra/newview/llimview.cpp6
1 files changed, 1 insertions, 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);