Commit 07447a46 authored by mathieui's avatar mathieui Committed by Maxime Buquet

omemo: fix the type of the supported tab tyoes

parent 03499a2d
......@@ -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()
......
......@@ -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]]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment