mirror of
https://github.com/mautrix/whatsapp.git
synced 2025-03-14 14:15:38 +00:00
msgconv/from-matrix: ensure media info is not nil
This commit is contained in:
parent
8d4964138c
commit
9d3a412b70
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue