[empathy] Add commented out code to set the _is_ready property of EmpathyContact



commit 82d5338954ab7bf8e7c3995d6ee04d66d5be6fc6
Author: Xavier Claessens <xclaesse gmail com>
Date:   Fri Feb 20 13:14:57 2009 +0100

    Add commented out code to set the _is_ready property of EmpathyContact
---
 libempathy/empathy-contact.c |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/libempathy/empathy-contact.c b/libempathy/empathy-contact.c
index 4edc4a3..a44abfe 100644
--- a/libempathy/empathy-contact.c
+++ b/libempathy/empathy-contact.c
@@ -731,6 +731,20 @@ empathy_contact_is_user (EmpathyContact *contact)
 
   priv = GET_PRIV (contact);
 
+  /* FIXME: Uncomment this once we depend on tp-glib 0.7.26
+  if (priv->tp_contact != NULL)
+    {
+      TpConnection *connection;
+      TpHandle handle;
+      TpHandle self_handle;
+
+      connection = tp_contact_get_connection (priv->tp_contact);
+      self_handle = tp_connection_get_self_handle (connection);
+      handle = tp_contact_get_handle (priv->tp_contact);
+      return self_handle == handle;      
+    }
+  */
+
   return priv->is_user;
 }
 



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