diff options
author | Maxime “pep” Buquet <pep@bouah.net> | 2018-12-01 23:33:00 +0000 |
---|---|---|
committer | Maxime “pep” Buquet <pep@bouah.net> | 2019-12-27 18:56:27 +0100 |
commit | 4ab6e64437123c56336eec5d51d079d83f966a65 (patch) | |
tree | e523a593e5891d961d13e6756560180701f5030a /plugins | |
parent | 2c720c9d9b69700a42f55c02e4c9be07cbc2bc23 (diff) | |
download | poezio-4ab6e64437123c56336eec5d51d079d83f966a65.tar.gz poezio-4ab6e64437123c56336eec5d51d079d83f966a65.tar.bz2 poezio-4ab6e64437123c56336eec5d51d079d83f966a65.tar.xz poezio-4ab6e64437123c56336eec5d51d079d83f966a65.zip |
omemo: Add omemo status in the tab infobar
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/omemo_plugin.py | 7 |
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() |