summaryrefslogtreecommitdiff
path: root/poezio/core/handlers.py
diff options
context:
space:
mode:
authorMaxime Buquet <pep@bouah.net>2019-12-28 22:36:27 +0100
committerMaxime Buquet <pep@bouah.net>2019-12-28 22:36:27 +0100
commitfa063ddd5747d63d5b1170bc2883175f41ffad24 (patch)
tree9f9ac4e7b0cdedca45ec24fa5e12981f9d41a78d /poezio/core/handlers.py
parentd7d4e30eecb0c2ae495be96c42b02109ed7f9ba2 (diff)
parentabbb6a714ef425351c884ae4cc48b7353324e971 (diff)
downloadpoezio-fa063ddd5747d63d5b1170bc2883175f41ffad24.tar.gz
poezio-fa063ddd5747d63d5b1170bc2883175f41ffad24.tar.bz2
poezio-fa063ddd5747d63d5b1170bc2883175f41ffad24.tar.xz
poezio-fa063ddd5747d63d5b1170bc2883175f41ffad24.zip
Merge branch 'plugin-omemo' into 'master'
E2EE plugins support See merge request poezio/poezio!18
Diffstat (limited to 'poezio/core/handlers.py')
-rw-r--r--poezio/core/handlers.py8
1 files changed, 8 insertions, 0 deletions
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"