From 4ab6e64437123c56336eec5d51d079d83f966a65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Sat, 1 Dec 2018 23:33:00 +0000 Subject: omemo: Add omemo status in the tab infobar MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- plugins/omemo_plugin.py | 7 +++++++ 1 file changed, 7 insertions(+) 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() -- cgit v1.2.3