Make sound for contact events rather than buddy events to reduce pointless noise for contacts with several buddies.

This commit is contained in:
Florian Quèze 2011-05-30 19:55:49 +02:00
Родитель c75126d428
Коммит 561ba53d24
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -41,7 +41,7 @@ Components.utils.import("resource:///modules/hiddenWindow.jsm");
Components.utils.import("resource:///modules/imServices.jsm");
var Sounds = {
soundEvents: ["buddy-signed-on", "buddy-signed-off", "new-text"],
soundEvents: ["contact-signed-on", "contact-signed-off", "new-text"],
soundFiles: {
incoming: "chrome://instantbird-sounds/skin/receive.wav",
outgoing: "chrome://instantbird-sounds/skin/send.wav",
@ -60,11 +60,11 @@ var Sounds = {
observe: function(aObject, aTopic, aMsg) {
switch(aTopic) {
case "buddy-signed-on":
case "contact-signed-on":
this.play("login", "blist");
break;
case "buddy-signed-off":
case "contact-signed-off":
this.play("logout", "blist");
break;