changeset 26839:bb537c36d92f

Ack the mail notification IQ. Refs #8240.
author Paul Aurich <paul@darkrain42.org>
date Thu, 07 May 2009 04:43:16 +0000
parents aa29dac7924f
children c637ddabb491
files libpurple/protocols/jabber/google.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/jabber/google.c	Thu May 07 04:37:30 2009 +0000
+++ b/libpurple/protocols/jabber/google.c	Thu May 07 04:43:16 2009 +0000
@@ -761,6 +761,12 @@
 	if (type != JABBER_IQ_SET)
 		return;
 
+	/* Acknowledge the notification */
+	iq = jabber_iq_new(js, JABBER_IQ_RESULT);
+	xmlnode_set_attrib(iq->node, "to", from);
+	xmlnode_set_attrib(iq->node, "id", id);
+	jabber_iq_send(iq);
+
 	purple_debug(PURPLE_DEBUG_MISC, "jabber",
 		   "Got new mail notification. Sending request for more info\n");