]> git.0d.be Git - empathy.git/blobdiff - libempathy/empathy-tp-chat.c
add empathy_tp_chat_get_self_contact()
[empathy.git] / libempathy / empathy-tp-chat.c
index 6d29807e40466d045c68645faed76a5912d1f231..1b2fe46b742765afd79f077cc665fccb02f05601 100644 (file)
@@ -1940,3 +1940,13 @@ empathy_tp_chat_get_chat_state (EmpathyTpChat *chat,
        return tp_channel_get_chat_state (priv->channel,
                empathy_contact_get_handle (contact));
 }
+
+EmpathyContact *
+empathy_tp_chat_get_self_contact (EmpathyTpChat *self)
+{
+       EmpathyTpChatPriv *priv = GET_PRIV (self);
+
+       g_return_val_if_fail (EMPATHY_IS_TP_CHAT (self), NULL);
+
+       return priv->user;
+}