Only request auto-receipts for messages with bodies
This commit is contained in:
parent
230a73fad2
commit
02f79fc94b
1 changed files with 3 additions and 0 deletions
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue