[empathy] Consider contact without presence as online (#627587)



commit db05ed13ac1bb1e4b58d7b3c14e382679ea5f92d
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Mon Aug 23 10:25:47 2010 +0200

    Consider contact without presence as online (#627587)
    
    That what we use to do but f8c37da731af9f6cd74e7a0ef08fa02059d981ac breaked
    it. If we don't consider such contacts as online, IRC contacts don't appear in
    the room contact list.

 libempathy/empathy-contact.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/libempathy/empathy-contact.c b/libempathy/empathy-contact.c
index 324f41f..6c703ac 100644
--- a/libempathy/empathy-contact.c
+++ b/libempathy/empathy-contact.c
@@ -1048,8 +1048,10 @@ empathy_contact_is_online (EmpathyContact *contact)
       case TP_CONNECTION_PRESENCE_TYPE_OFFLINE:
       case TP_CONNECTION_PRESENCE_TYPE_UNKNOWN:
       case TP_CONNECTION_PRESENCE_TYPE_ERROR:
-      case TP_CONNECTION_PRESENCE_TYPE_UNSET:
         return FALSE;
+      /* Contacts without presence are considered online so we can display IRC
+       * contacts in rooms. */
+      case TP_CONNECTION_PRESENCE_TYPE_UNSET:
       case TP_CONNECTION_PRESENCE_TYPE_AVAILABLE:
       case TP_CONNECTION_PRESENCE_TYPE_AWAY:
       case TP_CONNECTION_PRESENCE_TYPE_EXTENDED_AWAY:



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