diff options
Diffstat (limited to 'libempathy/empathy-contact.c')
-rw-r--r-- | 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 4edc4a308..a44abfe68 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; } |