comparison 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
comparison
equal deleted inserted replaced
3182:f2bb57348587 3183:8565af209234
812 def entityConnected(self): 812 def entityConnected(self):
813 # we want to be sure that we got the roster 813 # we want to be sure that we got the roster
814 return self.roster.got_roster 814 return self.roster.got_roster
815 815
816 def addPostXmlCallbacks(self, post_xml_treatments): 816 def addPostXmlCallbacks(self, post_xml_treatments):
817 post_xml_treatments.addCallback(self.messageProt.completeAttachments)
817 post_xml_treatments.addCallback(self.messageAddToHistory) 818 post_xml_treatments.addCallback(self.messageAddToHistory)
818 post_xml_treatments.addCallback(self.messageSendToBridge) 819 post_xml_treatments.addCallback(self.messageSendToBridge)
819 820
820 def send(self, obj): 821 def send(self, obj):
821 # original send method accept string 822 # original send method accept string