Thumbnail

rani/matterbridge.git

Clone URL: https://git.buni.party/rani/matterbridge.git

commit 56091563aa81278cbc1cab73d63be8071ada814d Author: ilmaisin <iiro.laiho@iki.fi> Date: Thu Dec 15 00:20:00 2022 +0000 Handle incoming document captions from whatsapp (#1935) diff --git a/bridge/whatsappmulti/handlers.go b/bridge/whatsappmulti/handlers.go index c6b96a5..379699d 100644 --- a/bridge/whatsappmulti/handlers.go +++ b/bridge/whatsappmulti/handlers.go @@ -3357 +3357 @@ func (b *Bwhatsapp) handleDocumentMessage(msg *events.Message) {   }     // Move file to bridge storage - helper.HandleDownloadData(b.Log, &rmsg, filename, "document", "", &data, b.General) + helper.HandleDownloadData(b.Log, &rmsg, filename, imsg.GetCaption(), "", &data, b.General)     b.Log.Debugf("<= Sending message from %s on %s to gateway", senderJID, b.Account)   b.Log.Debugf("<= Message is %#v", rmsg)