aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
authorChandni Verma <chandniverma2112@gmail.com>2011-01-16 22:49:49 +0800
committerChandni Verma <chandniverma2112@gmail.com>2011-01-18 18:23:48 +0800
commit1acf8998707505a367ef27e04730907b56408b3d (patch)
tree1fad8c8e0872c26405c7279ff39f980fda915eec /libempathy
parent9e70e42316ad1970c4508404baa86c69c81575b0 (diff)
downloadgsoc2013-empathy-1acf8998707505a367ef27e04730907b56408b3d.tar
gsoc2013-empathy-1acf8998707505a367ef27e04730907b56408b3d.tar.gz
gsoc2013-empathy-1acf8998707505a367ef27e04730907b56408b3d.tar.bz2
gsoc2013-empathy-1acf8998707505a367ef27e04730907b56408b3d.tar.lz
gsoc2013-empathy-1acf8998707505a367ef27e04730907b56408b3d.tar.xz
gsoc2013-empathy-1acf8998707505a367ef27e04730907b56408b3d.tar.zst
gsoc2013-empathy-1acf8998707505a367ef27e04730907b56408b3d.zip
Display typing icon in MUC contact-list
Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=609419
Diffstat (limited to 'libempathy')
-rw-r--r--libempathy/empathy-tp-chat.c9
-rw-r--r--libempathy/empathy-tp-chat.h3
2 files changed, 12 insertions, 0 deletions
diff --git a/libempathy/empathy-tp-chat.c b/libempathy/empathy-tp-chat.c
index f1351049a..e24ba84f5 100644
--- a/libempathy/empathy-tp-chat.c
+++ b/libempathy/empathy-tp-chat.c
@@ -1959,3 +1959,12 @@ empathy_tp_chat_is_invited (EmpathyTpChat *self,
return tp_channel_group_get_local_pending_info (priv->channel, self_handle,
inviter, NULL, NULL);
}
+
+TpChannelChatState
+empathy_tp_chat_get_chat_state (EmpathyTpChat *chat,
+ EmpathyContact *contact)
+{
+ EmpathyTpChatPriv *priv = GET_PRIV (chat);
+ return tp_channel_get_chat_state (priv->channel,
+ empathy_contact_get_handle (contact));
+}
diff --git a/libempathy/empathy-tp-chat.h b/libempathy/empathy-tp-chat.h
index 8858f4971..8511335cf 100644
--- a/libempathy/empathy-tp-chat.h
+++ b/libempathy/empathy-tp-chat.h
@@ -105,6 +105,9 @@ void empathy_tp_chat_join (EmpathyTpChat *chat);
gboolean empathy_tp_chat_is_invited (EmpathyTpChat *chat,
TpHandle *inviter);
+TpChannelChatState
+ empathy_tp_chat_get_chat_state (EmpathyTpChat *chat,
+ EmpathyContact *contact);
G_END_DECLS