From 07447a465aab6836f8d1aded58e47251c3c7e6e2 Mon Sep 17 00:00:00 2001 From: mathieui Date: Sun, 25 Aug 2019 01:27:55 +0200 Subject: omemo: fix the type of the supported tab tyoes --- plugins/omemo_plugin.py | 4 ++-- poezio/plugin_e2ee.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/omemo_plugin.py b/plugins/omemo_plugin.py index 538be98e..8af2402d 100644 --- a/plugins/omemo_plugin.py +++ b/plugins/omemo_plugin.py @@ -39,8 +39,8 @@ class Plugin(E2EEPlugin): encrypted_tags = [ (slixmpp_omemo.OMEMO_BASE_NS, 'encrypted'), ] - trust_state = {'accepted': {'verified', 'unverified'}, 'rejected': {'untrusted'}} - supported_tab_types = [DynamicConversationTab, StaticConversationTab, MucTab] + trust_states = {'accepted': {'verified', 'unverified'}, 'rejected': {'untrusted'}} + supported_tab_types = (DynamicConversationTab, StaticConversationTab, MucTab) def init(self) -> None: super().init() diff --git a/poezio/plugin_e2ee.py b/poezio/plugin_e2ee.py index 8206dc4a..2e982baf 100644 --- a/poezio/plugin_e2ee.py +++ b/poezio/plugin_e2ee.py @@ -117,7 +117,7 @@ class E2EEPlugin(BasePlugin): _enabled_tabs = {} # type: Dict[JID, Callable] # Tabs that support this encryption mechanism - supported_tab_types = [] # type: List[ChatTabs] + supported_tab_types = tuple() # type: Tuple[ChatTabs] # States for each remote entity trust_states = {'accepted': set(), 'rejected': set()} # type: Dict[str, Set[str]] -- cgit v1.2.3