Эх сурвалжийг харах

Fix bug in bridging captions

Tulir Asokan 3 жил өмнө
parent
commit
4f11d41a60
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      portal.go

+ 1 - 1
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
 		// TODO figure out how to handle captions with undecryptable messages turning decryptable
 		if converted.Caption != nil && existingMsg == nil {
 		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 {
 			if err != nil {
 				portal.log.Errorln("Failed to send caption of %s to Matrix: %v", msgID, err)
 				portal.log.Errorln("Failed to send caption of %s to Matrix: %v", msgID, err)
 			} else {
 			} else {