From 2ff48b7adf3e022e6809ce59f6429a387f0f3ffa Mon Sep 17 00:00:00 2001 From: lumi Date: Wed, 23 May 2018 23:08:57 +0200 Subject: Expand the status command, make decryption work, put a hack into the core so I can handle messages without bodies. --- poezio/core/handlers.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'poezio/core/handlers.py') diff --git a/poezio/core/handlers.py b/poezio/core/handlers.py index fc5938f3..8f2f2584 100644 --- a/poezio/core/handlers.py +++ b/poezio/core/handlers.py @@ -271,6 +271,14 @@ class HandlerCore: return self.on_normal_message(message) + def on_encrypted_message(self, message): + """ + When receiving an encrypted message + """ + if message["body"]: + return # Already being handled by on_message. + self.on_message(message) + def on_error_message(self, message): """ When receiving any message with type="error" -- cgit v1.2.3