[Telepathy-commits] [telepathy-gabble/master] Use GABBLE_PRESENCE_LAST_UNAVAILABLE instead of checking for specific presences

Sjoerd Simons sjoerd at luon.net
Tue Aug 19 10:54:11 PDT 2008


20080724114440-93b9a-5e4d172d98c8ae984850eedc3615a4e322c3eaef.gz
---
 src/presence.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/presence.c b/src/presence.c
index 7ae7619..b5cac6d 100644
--- a/src/presence.c
+++ b/src/presence.c
@@ -283,7 +283,7 @@ gabble_presence_update (GabblePresence *presence,
   res = _find_resource (presence, resource);
 
   /* remove, create or update a Resource as appropriate */
-  if (GABBLE_PRESENCE_OFFLINE >= status  && status <= GABBLE_PRESENCE_ERROR)
+  if (status <= GABBLE_PRESENCE_LAST_UNAVAILABLE)
     {
       if (NULL != res)
         {
-- 
1.5.6.3




More information about the Telepathy-commits mailing list