소스 검색

Fix sending captions to Matrix

Tulir Asokan 5 년 전
부모
커밋
4f09835b81
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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)
 		}