Only request auto-receipts for messages with bodies

This commit is contained in:
Lance Stout 2014-06-07 20:20:42 -07:00
parent 230a73fad2
commit 02f79fc94b

View file

@ -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',