Skip to content

Commit

Permalink
msgconv/from-matrix: ensure media info is not nil
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Dec 23, 2024
1 parent 8d49641 commit 9d3a412
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/msgconv/from-matrix.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9d3a412

Please sign in to comment.