xep_0384: is_encrypted helper
This commit is contained in:
parent
67c66eca1b
commit
6f50f5dee7
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue