mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 06:55:41 +00:00
Gallery: Voice message: render duration when the playback is not started.
This commit is contained in:
+1
-1
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user