Explorar o código

Fix sending captions to Matrix

Tulir Asokan %!s(int64=5) %!d(string=hai) anos
pai
achega
4f09835b81
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      portal.go

+ 1 - 1
portal.go

@@ -1111,7 +1111,7 @@ func (portal *Portal) HandleMediaMessage(source *User, download func() ([]byte,
 
 		portal.bridge.Formatter.ParseWhatsApp(captionContent)
 
-		_, err := portal.sendMessage(intent, event.EventMessage, content, ts)
+		_, err := portal.sendMessage(intent, event.EventMessage, captionContent, ts)
 		if err != nil {
 			portal.log.Warnfln("Failed to handle caption of message %s: %v", info.Id, err)
 		}