From 02f79fc94b3c6702dfcc0ce84863ecc744837125 Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Sat, 7 Jun 2014 20:20:42 -0700 Subject: Only request auto-receipts for messages with bodies --- sleekxmpp/plugins/xep_0184/receipt.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sleekxmpp/plugins/xep_0184/receipt.py b/sleekxmpp/plugins/xep_0184/receipt.py index 1fda2066..3e97d8db 100644 --- a/sleekxmpp/plugins/xep_0184/receipt.py +++ b/sleekxmpp/plugins/xep_0184/receipt.py @@ -118,6 +118,9 @@ class XEP_0184(BasePlugin): if stanza['receipt']: return stanza + if not stanza['body']: + return stanza + if stanza['to'].resource: if not self.xmpp['xep_0030'].supports(stanza['to'], feature='urn:xmpp:receipts', -- cgit v1.2.3