diff options
author | Lance Stout <lancestout@gmail.com> | 2014-06-07 20:20:42 -0700 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2014-06-07 20:20:42 -0700 |
commit | 02f79fc94b3c6702dfcc0ce84863ecc744837125 (patch) | |
tree | b8461de5811a29840159ec77163baf3a41f4a657 /sleekxmpp | |
parent | 230a73fad270185f5f75832b12e4f94712bb2380 (diff) | |
download | slixmpp-02f79fc94b3c6702dfcc0ce84863ecc744837125.tar.gz slixmpp-02f79fc94b3c6702dfcc0ce84863ecc744837125.tar.bz2 slixmpp-02f79fc94b3c6702dfcc0ce84863ecc744837125.tar.xz slixmpp-02f79fc94b3c6702dfcc0ce84863ecc744837125.zip |
Only request auto-receipts for messages with bodies
Diffstat (limited to 'sleekxmpp')
-rw-r--r-- | sleekxmpp/plugins/xep_0184/receipt.py | 3 |
1 files changed, 3 insertions, 0 deletions
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', |