Bug 86790

Summary: Systray indicator signals "offline" even though we're connected with invisible
Product: [Applications] kopete Reporter: Till Gerken <till.gerken>
Component: libkopeteAssignee: Kopete Developers <kopete-bugs-null>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description Till Gerken 2004-08-08 13:04:23 UTC
Version:           0.8.922 (CVS >= 20040717) (using KDE 3.2.92 (3.3 beta2), compiled sources)
Compiler:          gcc version 3.3.4 (Debian 1:3.3.4-3)
OS:                Linux (i686) release 2.6.5

The systray indicator stays grey even while I am connected as "invisible".
Comment 1 Richard Smith 2004-08-17 00:57:40 UTC
CVS commit by lilachaze: 

Make systray indicator think invisible is like away, not like offline.
Matt: Would you mind backporting this?
CCMAIL: 86790@bugs.kde.org
CCMAIL: matt@matt.rogers.name


  M +3 -2      systemtray.cpp   1.46


--- kdenetwork/kopete/kopete/systemtray.cpp  #1.45:1.46
@@ -286,7 +286,8 @@ void KopeteSystemTray::slotReevaluateAcc
                         bOnline = true; // at least one contact is online
                 }
-                else if (c->onlineStatus().status() == KopeteOnlineStatus::Away)
+                else if (c->onlineStatus().status() == KopeteOnlineStatus::Away
+                      || c->onlineStatus().status() == KopeteOnlineStatus::Invisible)
                 {
-                        bAway = true; // at least one contact is away
+                        bAway = true; // at least one contact is away or invisible
                 }
                 else // this account must be offline (or unknown, which I don't know how to handle)


Comment 2 Matt Rogers 2004-08-17 02:22:33 UTC
CVS commit by mattr: 

Backport the fix for 86790. This should be in KDE 3.3.1

CCMAIL: 86790-done@bugs.kde.org


  M +3 -2      systemtray.cpp   1.45.2.1


--- kdenetwork/kopete/kopete/systemtray.cpp  #1.45:1.45.2.1
@@ -286,7 +286,8 @@ void KopeteSystemTray::slotReevaluateAcc
                         bOnline = true; // at least one contact is online
                 }
-                else if (c->onlineStatus().status() == KopeteOnlineStatus::Away)
+                else if (c->onlineStatus().status() == KopeteOnlineStatus::Away
+                      || c->onlineStatus().status() == KopeteOnlineStatus::Invisible)
                 {
-                        bAway = true; // at least one contact is away
+                        bAway = true; // at least one contact is away or invisible
                 }
                 else // this account must be offline (or unknown, which I don't know how to handle)