Skip to content

Commit a0f4b2b

Browse files
author
Ivo Bellin Salarin
committed
fix: update the state of the recording when a transcription is in
progress
1 parent aa6ffc9 commit a0f4b2b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Recap/UseCases/Summary/ViewModel/SummaryViewModel.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,17 +131,17 @@ final class SummaryViewModel: SummaryViewModelType {
131131
guard let recording = currentRecording else { return }
132132

133133
do {
134-
// Fix stuck recording by transitioning to .recorded state
134+
// Update to transcribing state to show processing feedback
135135
try await recordingRepository.updateRecordingState(
136136
id: recording.id,
137-
state: .recorded,
137+
state: .transcribing,
138138
errorMessage: nil
139139
)
140140

141141
// Reload the recording to reflect the change
142142
loadRecording(withID: recording.id)
143143

144-
// Trigger processing
144+
// Fetch the updated recording and trigger processing
145145
if let updatedRecording = try await recordingRepository.fetchRecording(id: recording.id) {
146146
await processingCoordinator.startProcessing(recordingInfo: updatedRecording)
147147
}

0 commit comments

Comments
 (0)