summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2019-08-25 01:27:55 +0200
committerMaxime “pep” Buquet <pep@bouah.net>2019-12-27 18:58:48 +0100
commit07447a465aab6836f8d1aded58e47251c3c7e6e2 (patch)
treebeff0e9a31624c41272b4ef06934926b10d0d214
parent03499a2d2c0a657a886913d3988d69ca08ceca3a (diff)
downloadpoezio-07447a465aab6836f8d1aded58e47251c3c7e6e2.tar.gz
poezio-07447a465aab6836f8d1aded58e47251c3c7e6e2.tar.bz2
poezio-07447a465aab6836f8d1aded58e47251c3c7e6e2.tar.xz
poezio-07447a465aab6836f8d1aded58e47251c3c7e6e2.zip
omemo: fix the type of the supported tab tyoes
-rw-r--r--plugins/omemo_plugin.py4
-rw-r--r--poezio/plugin_e2ee.py2
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]]