summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorlumi <lumi@pew.im>2018-05-23 23:08:57 +0200
committerMaxime “pep” Buquet <pep@bouah.net>2019-12-27 18:56:27 +0100
commit2ff48b7adf3e022e6809ce59f6429a387f0f3ffa (patch)
tree76f4e691517c621c0400b29367f177670a50c820 /plugins
parentebbdbc2cbdc6d0aeaf7c4b1ea87af5049882564a (diff)
downloadpoezio-2ff48b7adf3e022e6809ce59f6429a387f0f3ffa.tar.gz
poezio-2ff48b7adf3e022e6809ce59f6429a387f0f3ffa.tar.bz2
poezio-2ff48b7adf3e022e6809ce59f6429a387f0f3ffa.tar.xz
poezio-2ff48b7adf3e022e6809ce59f6429a387f0f3ffa.zip
Expand the status command, make decryption work, put a hack into the core so I can handle messages without bodies.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/omemo_plugin.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/omemo_plugin.py b/plugins/omemo_plugin.py
index 8852aa2b..fa5dab67 100644
--- a/plugins/omemo_plugin.py
+++ b/plugins/omemo_plugin.py
@@ -77,6 +77,7 @@ class Plugin(BasePlugin):
"""Display contextual information depending on currenttab."""
tab = self.api.current_tab()
self.info('OMEMO!')
+ self.info("My device id: %d" % self.xmpp['xep_0384'].my_device_id())
def command_enable(self, _args):
pass
@@ -121,4 +122,5 @@ class Plugin(BasePlugin):
self.info('Foo2')
if self.xmpp['xep_0384'].is_encrypted(message):
- self.xmpp['xep_0384'].decrypt_message(message)
+ _always_none, body = self.xmpp['xep_0384'].decrypt_message(message)
+ message['body'] = body.decode("utf8")