summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorMaxime “pep” Buquet <pep@bouah.net>2022-03-17 00:13:44 +0100
committerMaxime “pep” Buquet <pep@bouah.net>2022-03-17 00:13:44 +0100
commitafaee7e7ec180f5f0b4c151bf1f0a51fa16f84e1 (patch)
tree32ea31337987adccf20be23e70bb2891fbae5b26 /plugins
parentdc894b9849e502a1dc7bd1987a1a122b6a227dcf (diff)
downloadpoezio-afaee7e7ec180f5f0b4c151bf1f0a51fa16f84e1.tar.gz
poezio-afaee7e7ec180f5f0b4c151bf1f0a51fa16f84e1.tar.bz2
poezio-afaee7e7ec180f5f0b4c151bf1f0a51fa16f84e1.tar.xz
poezio-afaee7e7ec180f5f0b4c151bf1f0a51fa16f84e1.zip
plugins/b64: specify supported_tab_types; Fix type in plugin_e2ee
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
Diffstat (limited to 'plugins')
-rw-r--r--plugins/b64.py16
1 files changed, 15 insertions, 1 deletions
diff --git a/plugins/b64.py b/plugins/b64.py
index 3557229c..9b4c4ab3 100644
--- a/plugins/b64.py
+++ b/plugins/b64.py
@@ -27,7 +27,13 @@ from typing import List, Optional
from slixmpp import Message, JID
from poezio.plugin_e2ee import E2EEPlugin
-from poezio.tabs import ChatTab
+from poezio.tabs import (
+ ChatTab,
+ MucTab,
+ PrivateTab,
+ DynamicConversationTab,
+ StaticConversationTab,
+)
class Plugin(E2EEPlugin):
@@ -40,6 +46,14 @@ class Plugin(E2EEPlugin):
# This encryption mechanism is using <body/> as a container
replace_body_with_eme = False
+ # In what tab is it ok to use this plugin. Here we want all of them
+ supported_tab_types = (
+ MucTab,
+ PrivateTab,
+ DynamicConversationTab,
+ StaticConversationTab,
+ )
+
async def decrypt(self, message: Message, jid: Optional[JID], _tab: Optional[ChatTab]) -> None:
"""
Decrypt base64