diff options
author | Maxime “pep” Buquet <pep@bouah.net> | 2018-12-01 23:28:49 +0000 |
---|---|---|
committer | Maxime “pep” Buquet <pep@bouah.net> | 2019-12-27 18:56:27 +0100 |
commit | 2c720c9d9b69700a42f55c02e4c9be07cbc2bc23 (patch) | |
tree | 2a0ade61ea984ce72f891d0252891555ada78d79 /plugins | |
parent | 43a97d64303271a8829dde63936d51d7a7e14cdb (diff) | |
download | poezio-2c720c9d9b69700a42f55c02e4c9be07cbc2bc23.tar.gz poezio-2c720c9d9b69700a42f55c02e4c9be07cbc2bc23.tar.bz2 poezio-2c720c9d9b69700a42f55c02e4c9be07cbc2bc23.tar.xz poezio-2c720c9d9b69700a42f55c02e4c9be07cbc2bc23.zip |
omemo: remove unused commands
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/omemo_plugin.py | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/plugins/omemo_plugin.py b/plugins/omemo_plugin.py index db1f2919..6e7aca94 100644 --- a/plugins/omemo_plugin.py +++ b/plugins/omemo_plugin.py @@ -56,19 +56,6 @@ class Plugin(BasePlugin): help='Disable OMEMO encryption', ) - self.api.add_tab_command( - ConversationTab, - 'omemo_toggle', - self.command_toggle, - help='Toggle OMEMO encryption state', - ) - - self.api.add_command( - 'omemo_clear_devices', - self.command_clear_devices, - help='Clear all other OMEMO devices', - ) - self.api.add_command( 'encrypted_message', self.send_message, @@ -97,19 +84,6 @@ class Plugin(BasePlugin): def command_disable(self, args): pass - def command_toggle(self, _args): - pass - - def command_clear_devices(self, _args): - asyncio.ensure_future(self.xmpp['xep_0384'].clear_device_list()) - info = """ - Device list has been reset. - Your other devices will reannounce themselves next time they get - online, but they might not be able to read encrypted messages in the - meantime. - """ - self.info(textwrap.dedent(info).strip()) - def send_message(self, _args): asyncio.ensure_future( self._send_message( |