XEP-0380: Add a helper to test for the presence of an EME tag.
This commit is contained in:
parent
4847f834bd
commit
457785b286
1 changed files with 3 additions and 0 deletions
|
@ -55,6 +55,9 @@ class XEP_0380(BasePlugin):
|
|||
def session_bind(self, jid):
|
||||
self.xmpp.plugin['xep_0030'].add_feature(Encryption.namespace)
|
||||
|
||||
def has_eme(self, msg):
|
||||
return msg.xml.find('{%s}encryption' % Encryption.namespace) is not None
|
||||
|
||||
def replace_body_with_eme(self, msg):
|
||||
eme = msg['eme']
|
||||
namespace = eme['namespace']
|
||||
|
|
Loading…
Reference in a new issue