core (message): fix calling of post treatments during message workflow

This commit is contained in:
Goffi 2023-12-01 18:20:27 +01:00
commit 0979b3fee3

View file

@ -1365,6 +1365,9 @@ class SatMessageProtocol(xmppim.MessageProtocol):
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"]: