From 4f11d41a603819ea31229a734027ae6cb7ec5c83 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Sat, 30 Oct 2021 19:17:10 +0300 Subject: [PATCH] Fix bug in bridging captions --- portal.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/portal.go b/portal.go index 566e746..1187ec1 100644 --- a/portal.go +++ b/portal.go @@ -367,7 +367,7 @@ func (portal *Portal) handleMessage(source *User, evt *events.Message) { } // TODO figure out how to handle captions with undecryptable messages turning decryptable if converted.Caption != nil && existingMsg == nil { - resp, err = portal.sendMessage(converted.Intent, converted.Type, converted.Content, evt.Info.Timestamp.UnixMilli()) + resp, err = portal.sendMessage(converted.Intent, converted.Type, converted.Caption, evt.Info.Timestamp.UnixMilli()) if err != nil { portal.log.Errorln("Failed to send caption of %s to Matrix: %v", msgID, err) } else {