[Pkg-mozext-commits] [firetray] 288/399: ignore server type 'im' silently for message count

David Prévot taffit at alioth.debian.org
Tue Oct 29 18:24:00 UTC 2013


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch dfsg-clean
in repository firetray.

commit 29dac883b9d2579cf1d5f7eda1f23ebec8eba45e
Author: foudfou <foudil.newbie+git at gmail.com>
Date:   Mon Sep 3 08:23:37 2012 +0200

    ignore server type 'im' silently for message count
---
 src/modules/FiretrayMessaging.jsm |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/modules/FiretrayMessaging.jsm b/src/modules/FiretrayMessaging.jsm
index be9e6be..b5199eb 100644
--- a/src/modules/FiretrayMessaging.jsm
+++ b/src/modules/FiretrayMessaging.jsm
@@ -274,7 +274,9 @@ firetray.Messaging = {
     try {
       let accounts = new this.Accounts();
       for (let accountServer in accounts) {
-        if (!serverTypes[accountServer.type]) {
+        if (accountServer.type === 'im') {
+          continue;             // IM messages are counted elsewhere
+        } else if (!serverTypes[accountServer.type]) {
           F.WARN("'"+accountServer.type+"' server type is not handled");
           continue;
         }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/firetray.git



More information about the Pkg-mozext-commits mailing list