Ensure waveform is not null for voice message.
This commit is contained in:
parent
7fb8ceb9a0
commit
cf837f35e1
1 changed files with 1 additions and 1 deletions
|
|
@ -196,7 +196,7 @@ class EventItemFactory @Inject constructor(
|
||||||
senderAvatar = event.senderProfile.getAvatarUrl(),
|
senderAvatar = event.senderProfile.getAvatarUrl(),
|
||||||
dateSent = dateSent,
|
dateSent = dateSent,
|
||||||
dateSentFull = dateSentFull,
|
dateSentFull = dateSentFull,
|
||||||
waveform = type.details?.waveform,
|
waveform = type.details?.waveform.orEmpty(),
|
||||||
),
|
),
|
||||||
mediaSource = type.source,
|
mediaSource = type.source,
|
||||||
duration = type.info?.duration?.inWholeMilliseconds?.toHumanReadableDuration(),
|
duration = type.info?.duration?.inWholeMilliseconds?.toHumanReadableDuration(),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue