xep_0384: is_encrypted helper

This commit is contained in:
Maxime “pep” Buquet 2018-05-14 12:24:13 +02:00
parent 67c66eca1b
commit 6f50f5dee7

View file

@ -162,4 +162,8 @@ class XEP_0384(BasePlugin):
jid, OMEMO_DEVICES_NS, payload=payload,
)
def is_encrypted(self, msg):
return msg.xml.find('{%s}encrypted' % OMEMO_BASE_NS) is not None
register_plugin(XEP_0384)