From 94539737998972571a33af133ae91b2769f7cd99 Mon Sep 17 00:00:00 2001 From: Sjoerd Simons Date: Mon, 15 Feb 2010 23:28:17 +0000 Subject: add API to TpChat to ack all pending messages in one go --- libempathy/empathy-tp-chat.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libempathy/empathy-tp-chat.c') diff --git a/libempathy/empathy-tp-chat.c b/libempathy/empathy-tp-chat.c index ea1c5ea62..65b4926c6 100644 --- a/libempathy/empathy-tp-chat.c +++ b/libempathy/empathy-tp-chat.c @@ -1713,6 +1713,13 @@ empathy_tp_chat_acknowledge_messages (EmpathyTpChat *chat, g_slist_free (msgs); } +void +empathy_tp_chat_acknowledge_all_messages (EmpathyTpChat *chat) +{ + empathy_tp_chat_acknowledge_messages (chat, + (GSList *) empathy_tp_chat_get_pending_messages (chat)); +} + gboolean empathy_tp_chat_password_needed (EmpathyTpChat *self) { -- cgit v1.2.3