no-store hint

This commit is contained in:
Bohdan Horbeshko 2023-09-20 19:48:48 +03:00
parent b538fa106e
commit 7bbff365ad
2 changed files with 2 additions and 1 deletions

1
otr.py
View file

@ -176,4 +176,5 @@ class OTR(context.Account):
event.encrypted, event.additional_data["encrypted"] = OTR.ENCRYPTION_NAME, {"name":OTR.ENCRYPTION_NAME} # some mandatory encryption flags event.encrypted, event.additional_data["encrypted"] = OTR.ENCRYPTION_NAME, {"name":OTR.ENCRYPTION_NAME} # some mandatory encryption flags
if channel.resource: if channel.resource:
event.stanza.addChild('no-copy', namespace='urn:xmpp:hints') # don't send carbons event.stanza.addChild('no-copy', namespace='urn:xmpp:hints') # don't send carbons
event.stanza.addChild('no-store', namespace='urn:xmpp:hints') # don't store in MAM
callback(event) callback(event)

View file

@ -17,5 +17,5 @@
"gajim>=1.6,<1.9" "gajim>=1.6,<1.9"
], ],
"short_name": "otrplugin", "short_name": "otrplugin",
"version": "0.5.1" "version": "0.5.2"
} }