summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime “pep” Buquet <pep@bouah.net>2022-03-16 23:33:16 +0100
committerMaxime “pep” Buquet <pep@bouah.net>2022-03-16 23:33:16 +0100
commit9168b577cdc1e54fa44c7650c7df55911ea6d397 (patch)
tree1986c9369189460f9c2554c5d94061d321aecc54
parentc9bc30d587e1e71f4771571c5eff18914c6968b2 (diff)
downloadpoezio-9168b577cdc1e54fa44c7650c7df55911ea6d397.tar.gz
poezio-9168b577cdc1e54fa44c7650c7df55911ea6d397.tar.bz2
poezio-9168b577cdc1e54fa44c7650c7df55911ea6d397.tar.xz
poezio-9168b577cdc1e54fa44c7650c7df55911ea6d397.zip
plugins/b64: change encrypt signature, fix import order
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
-rw-r--r--plugins/b64.py7
1 files changed, 4 insertions, 3 deletions
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
"""