mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-10 12:25:11 +00:00
fix: Audiomessage break app
This commit is contained in:
parent
f1db2b9781
commit
e1a819d17b
1 changed files with 1 additions and 1 deletions
|
@ -155,7 +155,7 @@ class AudioPlayerState extends State<AudioPlayerWidget> {
|
|||
final eventWaveForm = widget.event.content
|
||||
.tryGetMap<String, dynamic>('org.matrix.msc1767.audio')
|
||||
?.tryGetList<int>('waveform');
|
||||
if (eventWaveForm == null) {
|
||||
if (eventWaveForm == null || eventWaveForm.isEmpty) {
|
||||
return List<int>.filled(AudioPlayerWidget.wavesCount, 500);
|
||||
}
|
||||
while (eventWaveForm.length < AudioPlayerWidget.wavesCount) {
|
||||
|
|
Loading…
Reference in a new issue