summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Aurich <darkrain42@pidgin.im>2009-05-07 04:43:16 +0000
committerPaul Aurich <darkrain42@pidgin.im>2009-05-07 04:43:16 +0000
commit20fac759744030142369afc2e953113a741e4199 (patch)
treead9eb1e8dfa11f5944b4fff21e83250894d875df
parenta45b2941336566336be6c4885b023338c9a2b272 (diff)
downloadpidgin-20fac759744030142369afc2e953113a741e4199.tar.gz
Ack the mail notification IQ. Refs #8240.
-rw-r--r--libpurple/protocols/jabber/google.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libpurple/protocols/jabber/google.c b/libpurple/protocols/jabber/google.c
index a8275461c9..d3cb9a5ff9 100644
--- a/libpurple/protocols/jabber/google.c
+++ b/libpurple/protocols/jabber/google.c
@@ -761,6 +761,12 @@ jabber_gmail_poke(JabberStream *js, const char *from, JabberIqType type,
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");