msgconv/from-matrix: ensure media info is not nil

This commit is contained in:
Tulir Asokan 2024-12-23 20:45:04 +02:00
parent 8d4964138c
commit 9d3a412b70

View file

@ -376,7 +376,7 @@ func (mc *MessageConverter) convertToWebP(img []byte) ([]byte, error) {
func (mc *MessageConverter) reuploadFileToWhatsApp(
ctx context.Context, content *event.MessageEventContent,
) (*whatsmeow.UploadResponse, []byte, string, error) {
mime := content.Info.MimeType
mime := content.GetInfo().MimeType
fileName := content.Body
if content.FileName != "" {
fileName = content.FileName