mirror of
https://github.com/tulir/mautrix-whatsapp
synced 2024-12-13 09:03:10 +01:00
Fix sending captions to Matrix
This commit is contained in:
parent
b4949eec59
commit
4f09835b81
1 changed files with 1 additions and 1 deletions
|
@ -1111,7 +1111,7 @@ func (portal *Portal) HandleMediaMessage(source *User, download func() ([]byte,
|
||||||
|
|
||||||
portal.bridge.Formatter.ParseWhatsApp(captionContent)
|
portal.bridge.Formatter.ParseWhatsApp(captionContent)
|
||||||
|
|
||||||
_, err := portal.sendMessage(intent, event.EventMessage, content, ts)
|
_, err := portal.sendMessage(intent, event.EventMessage, captionContent, ts)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
portal.log.Warnfln("Failed to handle caption of message %s: %v", info.Id, err)
|
portal.log.Warnfln("Failed to handle caption of message %s: %v", info.Id, err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue