From 7609a56e4820906efee6792bbee12267060ef6c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Thu, 22 Aug 2019 22:18:34 +0200 Subject: omemo: handle StaticConversationTab as well MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- poezio/plugin_e2ee.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'poezio/plugin_e2ee.py') 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, -- cgit v1.2.3