Display duration of recorded voice message (#1733)

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
This commit is contained in:
jonnyandrew 2023-11-03 12:59:36 +00:00 committed by GitHub
parent 0e89080a50
commit 413ec4b5db
12 changed files with 119 additions and 40 deletions

View file

@ -39,10 +39,12 @@ sealed class VoiceRecorderState {
* @property file The recorded file.
* @property mimeType The mime type of the file.
* @property waveform The waveform of the recording.
* @property duration The total time spent recording.
*/
data class Finished(
val file: File,
val mimeType: String,
val waveform: List<Float>,
val duration: Duration,
) : VoiceRecorderState()
}