changeset 4168:d67eaa684484

core (message): fix calling of post treatments during message workflow
author Goffi <goffi@goffi.org>
date Fri, 01 Dec 2023 18:20:27 +0100
parents 319a0e47dc8b
children e92c32014024
files libervia/backend/core/xmpp.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libervia/backend/core/xmpp.py	Fri Dec 01 15:22:55 2023 +0100
+++ b/libervia/backend/core/xmpp.py	Fri Dec 01 18:20:27 2023 +0100
@@ -1365,6 +1365,9 @@
             return
         try:
             data = self.parse_message(message_elt)
+            # we now do all post treatments added by plugins
+            post_treat.callback(data)
+            await post_treat
 
             self.complete_attachments(data)
             if not data["message"] and not data["extra"] and not data["subject"]: