mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-08-29 01:09:15 +00:00
desktop: fix voice message recording not stopping on chat switch (#6849)
This commit is contained in:
+2
@@ -1304,6 +1304,8 @@ fun ComposeView(
|
||||
composeState.value = cs.copy(inProgress = false, progressByTimeout = false)
|
||||
} else if (!cs.empty) {
|
||||
if (cs.preview is ComposePreview.VoicePreview && !cs.preview.finished) {
|
||||
recState.value = RecordingState.NotStarted
|
||||
RecorderInterface.stopRecording?.invoke()
|
||||
composeState.value = cs.copy(preview = cs.preview.copy(finished = true))
|
||||
}
|
||||
if (saveLastDraft) {
|
||||
|
||||
Reference in New Issue
Block a user