summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime “pep” Buquet <pep@bouah.net>2019-08-22 22:18:34 +0200
committerMaxime “pep” Buquet <pep@bouah.net>2019-12-27 18:57:31 +0100
commit7609a56e4820906efee6792bbee12267060ef6c0 (patch)
tree2a85f4667b32b159f5a9e1fe178770ff4f276a58
parentfa3c96a602ccac64d3b742c8b9b7376e67525cd1 (diff)
downloadpoezio-7609a56e4820906efee6792bbee12267060ef6c0.tar.gz
poezio-7609a56e4820906efee6792bbee12267060ef6c0.tar.bz2
poezio-7609a56e4820906efee6792bbee12267060ef6c0.tar.xz
poezio-7609a56e4820906efee6792bbee12267060ef6c0.zip
omemo: handle StaticConversationTab as well
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
-rw-r--r--poezio/plugin_e2ee.py10
1 files changed, 3 insertions, 7 deletions
diff --git a/poezio/plugin_e2ee.py b/poezio/plugin_e2ee.py
index 7adca206..e626f3ab 100644
--- a/poezio/plugin_e2ee.py
+++ b/poezio/plugin_e2ee.py
@@ -21,12 +21,7 @@ from typing import (
from slixmpp import InvalidJID, JID, Message
from slixmpp.xmlstream import StanzaBase
-from poezio.tabs import (
- ConversationTab,
- DynamicConversationTab,
- PrivateTab,
- MucTab,
-)
+from poezio.tabs import ConversationTab, DynamicConversationTab, StaticConversationTab, PrivateTab, MucTab
from poezio.plugin import BasePlugin
import logging
@@ -36,6 +31,7 @@ log = logging.getLogger(__name__)
ChatTabs = Union[
MucTab,
DynamicConversationTab,
+ StaticConversationTab,
PrivateTab,
]
@@ -133,7 +129,7 @@ class E2EEPlugin(BasePlugin):
# sure poezio is not sneaking anything past us.
self.core.xmpp.add_filter('out', self._encrypt)
- for tab_t in (DynamicConversationTab, PrivateTab, MucTab):
+ for tab_t in (DynamicConversationTab, StaticConversationTab, PrivateTab, MucTab):
self.api.add_tab_command(
tab_t,
self.encryption_short_name,