From 1acf8998707505a367ef27e04730907b56408b3d Mon Sep 17 00:00:00 2001 From: Chandni Verma Date: Sun, 16 Jan 2011 20:19:49 +0530 Subject: Display typing icon in MUC contact-list Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=609419 --- libempathy/empathy-tp-chat.c | 9 +++++++++ libempathy/empathy-tp-chat.h | 3 +++ 2 files changed, 12 insertions(+) (limited to 'libempathy') 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 -- cgit v1.2.3