Store last message MXID in database for multipart messages

This commit is contained in:
Tulir Asokan 2021-06-22 12:35:38 +03:00
parent 4b80c15a0a
commit bd207df82d

View file

@ -1801,11 +1801,10 @@ func (portal *Portal) HandleMediaMessage(source *User, msg mediaMessage) {
portal.bridge.Formatter.ParseWhatsApp(captionContent, msg.context.MentionedJID)
_, err := portal.sendMessage(intent, event.EventMessage, captionContent, ts)
resp, err = portal.sendMessage(intent, event.EventMessage, captionContent, ts)
if err != nil {
portal.log.Warnfln("Failed to handle caption of message %s: %v", msg.info.Id, err)
}
// TODO store caption mxid?
}
portal.finishHandling(source, msg.info.Source, resp.EventID)