summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2019-08-25 00:44:42 +0200
committerMaxime “pep” Buquet <pep@bouah.net>2019-12-27 18:58:48 +0100
commitc85c8f6c7729b94d06a15614240e848592c60ef0 (patch)
tree7b55c9b071a068529564076ad48c0e589251a776 /plugins
parent25dae11eb303c47915b1b2805d7cad2b37f92409 (diff)
downloadpoezio-c85c8f6c7729b94d06a15614240e848592c60ef0.tar.gz
poezio-c85c8f6c7729b94d06a15614240e848592c60ef0.tar.bz2
poezio-c85c8f6c7729b94d06a15614240e848592c60ef0.tar.xz
poezio-c85c8f6c7729b94d06a15614240e848592c60ef0.zip
omemo: add supported_tab_types and trust_states into the omemo plugin
Diffstat (limited to 'plugins')
-rw-r--r--plugins/omemo_plugin.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/omemo_plugin.py b/plugins/omemo_plugin.py
index fff10cbf..6a2f0640 100644
--- a/plugins/omemo_plugin.py
+++ b/plugins/omemo_plugin.py
@@ -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()