From fec0559d11fb42a9691dc401c60753f7269d665c Mon Sep 17 00:00:00 2001 From: Inusaito Sayori Date: Mon, 9 Jun 2014 00:02:54 -0400 Subject: [PATCH] Introduce debug setting, LiruNewMessageSoundIMsOn, for defaulting ding of new IMs on. This setting is off by default and I don't intend to give it a gui yet. It probably will go in Chat UI, eventually. --- indra/newview/app_settings/settings.xml | 13 +++++++++++++ indra/newview/llimpanel.cpp | 1 + 2 files changed, 14 insertions(+) diff --git a/indra/newview/app_settings/settings.xml b/indra/newview/app_settings/settings.xml index a126b13ce..8144cb7a9 100644 --- a/indra/newview/app_settings/settings.xml +++ b/indra/newview/app_settings/settings.xml @@ -939,6 +939,19 @@ IsCOA 1 + LiruNewMessageSoundIMsOn + + Comment + Whether or not ding defaults to being on for new IMs. + Persist + 1 + Type + Boolean + Value + 0 + IsCOA + 1 + LiruNoTransactionClutter Comment diff --git a/indra/newview/llimpanel.cpp b/indra/newview/llimpanel.cpp index 9acb77737..3da20e256 100644 --- a/indra/newview/llimpanel.cpp +++ b/indra/newview/llimpanel.cpp @@ -347,6 +347,7 @@ LLFloaterIMPanel::LLFloaterIMPanel( case IM_SESSION_P2P_INVITE: mVoiceChannel = new LLVoiceChannelP2P(mSessionUUID, mLogLabel, mOtherParticipantUUID); LLAvatarTracker::instance().addParticularFriendObserver(mOtherParticipantUUID, this); + mDing = gSavedSettings.getBOOL("LiruNewMessageSoundIMsOn"); break; default: llwarns << "Unknown session type" << llendl;