diff options
author | ilmaisin <iiro.laiho@iki.fi> | 2022-12-15 00:20:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-14 23:20:00 +0100 |
commit | 91353d0a4daba4d6453deb718848acddf51d7dc4 (patch) | |
tree | 30b8f5cb53ba61e2a8a3f0e74142b59db22427d7 | |
parent | 0a6d64ab485645b337664a8c90a974bbf1b18478 (diff) | |
download | matterbridge-msglm-91353d0a4daba4d6453deb718848acddf51d7dc4.tar.gz matterbridge-msglm-91353d0a4daba4d6453deb718848acddf51d7dc4.tar.bz2 matterbridge-msglm-91353d0a4daba4d6453deb718848acddf51d7dc4.zip |
Handle incoming document captions from whatsapp (#1935)
-rw-r--r-- | bridge/whatsappmulti/handlers.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bridge/whatsappmulti/handlers.go b/bridge/whatsappmulti/handlers.go index c6b96a5e..379699d9 100644 --- a/bridge/whatsappmulti/handlers.go +++ b/bridge/whatsappmulti/handlers.go @@ -335,7 +335,7 @@ 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) |