From 4bfeb6b00283c00ce8dcaa2078e56ea7c792ac34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Thu, 24 Mar 2022 19:52:33 +0100 Subject: [PATCH] is_encrypted: now a staticmethod MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- slixmpp_omemo/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/slixmpp_omemo/__init__.py b/slixmpp_omemo/__init__.py index 15a9699..a60ebb2 100644 --- a/slixmpp_omemo/__init__.py +++ b/slixmpp_omemo/__init__.py @@ -641,8 +641,8 @@ class XEP_0384(BasePlugin): return await self._omemo().getTrustForJID(jid.bare) - @classmethod - def is_encrypted(cls, msg: Message) -> bool: + @staticmethod + def is_encrypted(msg: Message) -> bool: return msg.xml.find('{%s}encrypted' % OMEMO_BASE_NS) is not None async def decrypt_message(