#4010 play only audio mention ping for new conversation

master
Maxim Nikolenko 2025-05-12 23:12:15 +03:00 committed by GitHub
parent fb34971786
commit 733d65d039
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 2 deletions

View File

@ -3260,7 +3260,11 @@ void LLIMMgr::addMessage(
//Play sound for new conversations
if (!skip_message && !gAgent.isDoNotDisturb() && (gSavedSettings.getBOOL("PlaySoundNewConversation")))
{
make_ui_sound("UISndNewIncomingIMSession");
static LLCachedControl<bool> play_snd_mention_pref(gSavedSettings, "PlaySoundChatMention", false);
if (!play_snd_mention_pref || !LLUrlRegistry::getInstance()->containsAgentMention(msg))
{
make_ui_sound("UISndNewIncomingIMSession");
}
}
}
else

View File

@ -1008,7 +1008,7 @@
value="0.82 0.91 0.98 0.15" />
<color
name="ChatSelfMentionHighlight"
value="1 1 0 1" />
value="1 1 0 0.35" />
<color
name="MentionFlashBgColor"
value="1 1 0 0.5" />