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.
This commit is contained in:
Inusaito Sayori
2014-06-09 00:02:54 -04:00
parent e46fc0a805
commit fec0559d11
2 changed files with 14 additions and 0 deletions

View File

@@ -939,6 +939,19 @@
<key>IsCOA</key>
<integer>1</integer>
</map>
<key>LiruNewMessageSoundIMsOn</key>
<map>
<key>Comment</key>
<string>Whether or not ding defaults to being on for new IMs.</string>
<key>Persist</key>
<integer>1</integer>
<key>Type</key>
<string>Boolean</string>
<key>Value</key>
<boolean>0</boolean>
<key>IsCOA</key>
<integer>1</integer>
</map>
<key>LiruNoTransactionClutter</key>
<map>
<key>Comment</key>

View File

@@ -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;