Gallery: Voice message: render duration when the playback is not started.

This commit is contained in:
Benoit Marty 2024-12-18 11:29:02 +01:00
parent 16b348a2ce
commit 8bd34ed702

View file

@ -117,7 +117,7 @@ private fun VoiceInfoRow(
}
Spacer(Modifier.width(8.dp))
Text(
text = state.time,
text = if (state.progress > 0f) state.time else voice.duration ?: state.time,
color = ElementTheme.colors.textSecondary,
style = ElementTheme.typography.fontBodyMdMedium,
maxLines = 1,