fix(electron): increase recording timeout (#12733)

<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit

- **Refactor**
  - Removed the automatic timeout that stopped recordings after 1.5 hours. Recordings will no longer be stopped automatically based on duration.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
pengx17
2025-06-06 08:40:05 +00:00
parent 2817b5aec4
commit 0f9b7d4a0d
@@ -38,8 +38,6 @@ import type {
TappableAppInfo,
} from './types';
const MAX_DURATION_FOR_TRANSCRIPTION = 1.5 * 60 * 60 * 1000; // 1.5 hours
export const MeetingsSettingsState = {
$: globalStateStorage.watch<MeetingSettingsSchema>(MeetingSettingsKey).pipe(
map(v => MeetingSettingsSchema.parse(v ?? {})),
@@ -547,19 +545,6 @@ export function startRecording(
createRecording(state);
}
// set a timeout to stop the recording after MAX_DURATION_FOR_TRANSCRIPTION
setTimeout(() => {
const state = recordingStateMachine.status$.value;
if (
state?.status === 'recording' &&
state.id === recordingStatus$.value?.id
) {
stopRecording(state.id).catch(err => {
logger.error('failed to stop recording', err);
});
}
}, MAX_DURATION_FOR_TRANSCRIPTION);
recordingStateMachine.status$.next(state);
return state;