diff sat/core/xmpp.py @ 3183:8565af209234

core (xmpp): complete attachments for sent attachments: sent attachments are stored and sent back to frontends, so it is necessary to complete them in the same way as incoming attachments.
author Goffi <goffi@goffi.org>
date Sun, 23 Feb 2020 17:49:21 +0100
parents 84a94b385760
children e8ce30798d15
line wrap: on
line diff
--- a/sat/core/xmpp.py	Sun Feb 23 17:48:26 2020 +0100
+++ b/sat/core/xmpp.py	Sun Feb 23 17:49:21 2020 +0100
@@ -814,6 +814,7 @@
         return self.roster.got_roster
 
     def addPostXmlCallbacks(self, post_xml_treatments):
+        post_xml_treatments.addCallback(self.messageProt.completeAttachments)
         post_xml_treatments.addCallback(self.messageAddToHistory)
         post_xml_treatments.addCallback(self.messageSendToBridge)