FIRE-13979: Muted chat setting off keyword alert chime

Ansariel 2014-09-11 18:50:02 +02:00
parent a38473a663
commit 7f4d17bc5d
1 changed files with 2 additions and 2 deletions

View File

@ -99,9 +99,9 @@ bool FSKeywords::chatContainsKeyword(const LLChat& chat, bool is_local)
// <FS:PP> FIRE-10178: Keyword Alerts in group IM do not work unless the group is in the foreground
void FSKeywords::notify(const LLChat& chat)
{
if (chat.mFromID != gAgent.getID() || chat.mFromName == SYSTEM_FROM)
if (chat.mFromID != gAgentID || chat.mFromName == SYSTEM_FROM)
{
if (!LLMuteList::getInstance()->isMuted(chat.mFromID))
if (!LLMuteList::getInstance()->isMuted(chat.mFromID) && !chat.mMuted)
{
static LLCachedControl<bool> PlayModeUISndFSKeywordSound(gSavedSettings, "PlayModeUISndFSKeywordSound");
if (PlayModeUISndFSKeywordSound)