Only request auto-receipts for messages with bodies
This commit is contained in:
parent
230a73fad2
commit
02f79fc94b
@ -118,6 +118,9 @@ class XEP_0184(BasePlugin):
|
|||||||
if stanza['receipt']:
|
if stanza['receipt']:
|
||||||
return stanza
|
return stanza
|
||||||
|
|
||||||
|
if not stanza['body']:
|
||||||
|
return stanza
|
||||||
|
|
||||||
if stanza['to'].resource:
|
if stanza['to'].resource:
|
||||||
if not self.xmpp['xep_0030'].supports(stanza['to'],
|
if not self.xmpp['xep_0030'].supports(stanza['to'],
|
||||||
feature='urn:xmpp:receipts',
|
feature='urn:xmpp:receipts',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user