From 9168b577cdc1e54fa44c7650c7df55911ea6d397 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Wed, 16 Mar 2022 23:33:16 +0100 Subject: plugins/b64: change encrypt signature, fix import order MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- plugins/b64.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'plugins') diff --git a/plugins/b64.py b/plugins/b64.py index 83eff008..3557229c 100644 --- a/plugins/b64.py +++ b/plugins/b64.py @@ -23,10 +23,11 @@ This plugin also respects security guidelines listed in XEP-0419. """ from base64 import b64decode, b64encode +from typing import List, Optional +from slixmpp import Message, JID + from poezio.plugin_e2ee import E2EEPlugin from poezio.tabs import ChatTab -from slixmpp import Message, JID -from typing import Optional class Plugin(E2EEPlugin): @@ -46,7 +47,7 @@ class Plugin(E2EEPlugin): body = message['body'] message['body'] = b64decode(body.encode()).decode() - async def encrypt(self, message: Message, jid: Optional[JID], _tab: ChatTab) -> None: + async def encrypt(self, message: Message, _jid: Optional[List[JID]], _tab: ChatTab) -> None: """ Encrypt to base64 """ -- cgit v1.2.3