Ensure waveform is not null for voice message.

This commit is contained in:
Benoit Marty 2024-12-13 10:43:59 +01:00
parent efd745a042
commit 54c26857bd

View file

@ -196,7 +196,7 @@ class EventItemFactory @Inject constructor(
senderAvatar = event.senderProfile.getAvatarUrl(),
dateSent = dateSent,
dateSentFull = dateSentFull,
waveform = type.details?.waveform,
waveform = type.details?.waveform.orEmpty(),
),
mediaSource = type.source,
duration = type.info?.duration?.inWholeMilliseconds?.toHumanReadableDuration(),