[empathy] Treat TP_CONNECTION_PRESENCE_TYPE_UNSET as _AVAILABLE



commit bef9e289a01555b4a557988eac0b52ce4d1b1b22
Author: Sjoerd Simons <sjoerd simons collabora co uk>
Date:   Wed May 27 22:30:36 2009 +0100

    Treat TP_CONNECTION_PRESENCE_TYPE_UNSET as _AVAILABLE
    
    In case a CM doesn't have the presence interface a contacts presence will be
    reported as _UNSET. Treating this as _AVAILABLE causes these contacts to
    show up in the UI
---
 libempathy/empathy-contact.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libempathy/empathy-contact.c b/libempathy/empathy-contact.c
index 3d6432d..9e8e271 100644
--- a/libempathy/empathy-contact.c
+++ b/libempathy/empathy-contact.c
@@ -599,12 +599,12 @@ presence_type_to_mc_presence (TpConnectionPresenceType type)
 {
   switch (type)
     {
-      case TP_CONNECTION_PRESENCE_TYPE_UNSET:
       case TP_CONNECTION_PRESENCE_TYPE_UNKNOWN:
       case TP_CONNECTION_PRESENCE_TYPE_ERROR:
         return MC_PRESENCE_UNSET;
       case TP_CONNECTION_PRESENCE_TYPE_OFFLINE:
         return MC_PRESENCE_OFFLINE;
+      case TP_CONNECTION_PRESENCE_TYPE_UNSET:
       case TP_CONNECTION_PRESENCE_TYPE_AVAILABLE:
         return MC_PRESENCE_AVAILABLE;
       case TP_CONNECTION_PRESENCE_TYPE_AWAY:



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]