summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-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
"""