mirror of
https://github.com/tulir/mautrix-whatsapp
synced 2024-12-04 20:52:54 +01: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…
Reference in a new issue