mirror of
https://github.com/mautrix/whatsapp.git
synced 2025-03-14 14:15:38 +00:00
msgconv/from-matrix: fix error if voice message is missing waveform
This commit is contained in:
parent
7488865b51
commit
dcd0b568bc
1 changed files with 1 additions and 1 deletions
|
@ -508,7 +508,7 @@ func getAudioInfo(content *event.MessageEventContent) (output []byte, Duration u
|
|||
return nil, uint32(content.Info.Duration / 1000)
|
||||
}
|
||||
waveform := audioInfo.Waveform
|
||||
if waveform != nil {
|
||||
if len(waveform) == 0 {
|
||||
return nil, uint32(audioInfo.Duration / 1000)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue