omemo: add supported_tab_types and trust_states into the omemo plugin
This commit is contained in:
parent
25dae11eb3
commit
c85c8f6c77
1 changed files with 3 additions and 0 deletions
|
@ -15,6 +15,7 @@ import logging
|
|||
|
||||
from poezio.plugin_e2ee import E2EEPlugin
|
||||
from poezio.xdg import DATA_HOME
|
||||
from poezio.tabs import DynamicConversationTab, StaticConversationTab, MucTab
|
||||
|
||||
from omemo.exceptions import MissingBundleException
|
||||
from slixmpp.stanza import Message
|
||||
|
@ -37,6 +38,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]
|
||||
|
||||
def init(self) -> None:
|
||||
super().init()
|
||||
|
|
Loading…
Reference in a new issue