is_encrypted doesn't require the plugin to be instanciated
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
parent
8e44c07aed
commit
80cdab3ba3
1 changed files with 2 additions and 1 deletions
|
@ -659,7 +659,8 @@ class XEP_0384(BasePlugin):
|
||||||
|
|
||||||
return await self._omemo().getTrustForJID(jid.bare)
|
return await self._omemo().getTrustForJID(jid.bare)
|
||||||
|
|
||||||
def is_encrypted(self, msg: Message) -> bool:
|
@classmethod
|
||||||
|
def is_encrypted(cls, msg: Message) -> bool:
|
||||||
return msg.xml.find('{%s}encrypted' % OMEMO_BASE_NS) is not None
|
return msg.xml.find('{%s}encrypted' % OMEMO_BASE_NS) is not None
|
||||||
|
|
||||||
async def decrypt_message(
|
async def decrypt_message(
|
||||||
|
|
Loading…
Reference in a new issue