[sip-comm-cvs] CVS update: /sip-communicator/src/net/java/sip/communicator/impl/protocol/icq/OperationSetPersistentPresenceIcqImpl.java

damencho at dev.java.net damencho at dev.java.net
Wed Apr 11 13:22:29 CEST 2007


User: damencho
Date: 2007-04-11 11:22:29+0000
Log:
 Fix some icq status issues.

File Changes:

Directory: /sip-communicator/src/net/java/sip/communicator/impl/protocol/icq/
=============================================================================

File [changed]: OperationSetPersistentPresenceIcqImpl.java
Url: https://sip-communicator.dev.java.net/source/browse/sip-communicator/src/net/java/sip/communicator/impl/protocol/icq/OperationSetPersistentPresenceIcqImpl.java?r1=1.31&r2=1.32
Delta lines:  +8 -0
-------------------
--- OperationSetPersistentPresenceIcqImpl.java	2007-04-10 15:29:01+0000	1.31
+++ OperationSetPersistentPresenceIcqImpl.java	2007-04-11 11:22:27+0000	1.32
@@ -306,6 +306,10 @@
             }
         }
 
+        // icq status is not set so it must be Offline
+        if(responseRetriever.status == -1)
+            return IcqStatusEnum.OFFLINE;
+
         return icqStatusLongToPresenceStatus(responseRetriever.status);
     }
 
@@ -866,6 +870,10 @@
      */
     public PresenceStatus getPresenceStatus()
     {
+        // if status is not set its offline
+        if(currentIcqStatus == -1)
+            return IcqStatusEnum.OFFLINE;
+        
         return icqStatusLongToPresenceStatus(currentIcqStatus);
     }
 




---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe at sip-communicator.dev.java.net
For additional commands, e-mail: cvs-help at sip-communicator.dev.java.net





More information about the commits mailing list