mirror of
https://github.com/tulir/mautrix-whatsapp
synced 2024-12-14 09:23:51 +01:00
Store last message MXID in database for multipart messages
This commit is contained in:
parent
4b80c15a0a
commit
bd207df82d
1 changed files with 1 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue