]> git.0d.be Git - empathy.git/commitdiff
Add commented out code to set the _is_ready property of EmpathyContact
authorXavier Claessens <xclaesse@gmail.com>
Fri, 20 Feb 2009 12:14:57 +0000 (13:14 +0100)
committerXavier Claessens <xclaesse@gmail.com>
Wed, 22 Apr 2009 10:21:12 +0000 (12:21 +0200)
libempathy/empathy-contact.c

index 4edc4a30808818a2fc3043ba296d901b8385798b..a44abfe6874c2316720871b78e013cd49c0f0711 100644 (file)
@@ -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;
 }