omemo: fix the type of the supported tab tyoes

This commit is contained in:
mathieui 2019-08-25 01:27:55 +02:00 committed by Maxime “pep” Buquet
parent 03499a2d2c
commit 07447a465a
2 changed files with 3 additions and 3 deletions

View file

@ -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()

View file

@ -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]]