aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
authorDanielle Madeley <danielle.madeley@collabora.co.uk>2011-04-21 10:35:39 +0800
committerDanielle Madeley <danielle.madeley@collabora.co.uk>2011-04-21 10:35:39 +0800
commit755d626b3b010d2b2aaecb968c8faf579df92790 (patch)
tree0055107f86a63eebd36de66ddae7cdc7c3b7f6cc /libempathy
parentd65218e07bdf9b63007c17315513e063d4c6e598 (diff)
downloadgsoc2013-empathy-755d626b3b010d2b2aaecb968c8faf579df92790.tar
gsoc2013-empathy-755d626b3b010d2b2aaecb968c8faf579df92790.tar.gz
gsoc2013-empathy-755d626b3b010d2b2aaecb968c8faf579df92790.tar.bz2
gsoc2013-empathy-755d626b3b010d2b2aaecb968c8faf579df92790.tar.lz
gsoc2013-empathy-755d626b3b010d2b2aaecb968c8faf579df92790.tar.xz
gsoc2013-empathy-755d626b3b010d2b2aaecb968c8faf579df92790.tar.zst
gsoc2013-empathy-755d626b3b010d2b2aaecb968c8faf579df92790.zip
Port empathy_tp_chat_get_self_contact() from master
Diffstat (limited to 'libempathy')
-rw-r--r--libempathy/empathy-tp-chat.c10
-rw-r--r--libempathy/empathy-tp-chat.h1
2 files changed, 11 insertions, 0 deletions
diff --git a/libempathy/empathy-tp-chat.c b/libempathy/empathy-tp-chat.c
index 17ddf2701..1d5b43cb6 100644
--- a/libempathy/empathy-tp-chat.c
+++ b/libempathy/empathy-tp-chat.c
@@ -1972,3 +1972,13 @@ empathy_tp_chat_is_sms_channel (EmpathyTpChat *self)
return priv->sms_channel;
}
+
+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;
+}
diff --git a/libempathy/empathy-tp-chat.h b/libempathy/empathy-tp-chat.h
index a71c81c7e..5559bdd4b 100644
--- a/libempathy/empathy-tp-chat.h
+++ b/libempathy/empathy-tp-chat.h
@@ -64,6 +64,7 @@ EmpathyTpChat *empathy_tp_chat_new (TpAccount *account,
TpChannel *channel);
const gchar * empathy_tp_chat_get_id (EmpathyTpChat *chat);
EmpathyContact *empathy_tp_chat_get_remote_contact (EmpathyTpChat *chat);
+EmpathyContact *empathy_tp_chat_get_self_contact (EmpathyTpChat *chat);
TpChannel * empathy_tp_chat_get_channel (EmpathyTpChat *chat);
TpAccount * empathy_tp_chat_get_account (EmpathyTpChat *chat);
TpConnection * empathy_tp_chat_get_connection (EmpathyTpChat *chat);