fix(electron): sometimes pops up failed to save dialog (#11925)
fix AF-2557
This commit is contained in:
@@ -531,6 +531,7 @@ export function startRecording(
|
|||||||
|
|
||||||
// set a timeout to stop the recording after MAX_DURATION_FOR_TRANSCRIPTION
|
// set a timeout to stop the recording after MAX_DURATION_FOR_TRANSCRIPTION
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
const state = recordingStateMachine.status$.value;
|
||||||
if (
|
if (
|
||||||
state?.status === 'recording' &&
|
state?.status === 'recording' &&
|
||||||
state.id === recordingStatus$.value?.id
|
state.id === recordingStatus$.value?.id
|
||||||
|
|||||||
Reference in New Issue
Block a user