summaryrefslogtreecommitdiff
path: root/plugins/omemo_plugin.py
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/omemo_plugin.py')
-rw-r--r--plugins/omemo_plugin.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/omemo_plugin.py b/plugins/omemo_plugin.py
index 6e7aca94..df839fc4 100644
--- a/plugins/omemo_plugin.py
+++ b/plugins/omemo_plugin.py
@@ -42,6 +42,10 @@ class Plugin(BasePlugin):
help='Display contextual information',
)
+ ConversationTab.add_information_element('omemo', self.display_encryption_status)
+ # Waiting for https://lab.louiz.org/poezio/poezio/merge_requests/17
+ # MucTab.add_information_element('omemo', self.display_encryption_status)
+
self.api.add_tab_command(
ConversationTab,
'omemo_enable',
@@ -72,6 +76,9 @@ class Plugin(BasePlugin):
self.on_conversation_msg,
)
+ def display_encryption_status(self, *_args):
+ return " OMEMO"
+
def command_status(self, _args):
"""Display contextual information depending on currenttab."""
tab = self.api.current_tab()