Skip to content

Commit 3c1b72f

Browse files
committed
Small tweak to sync up logic.
1 parent 67f2377 commit 3c1b72f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Examples/SyncUps/SyncUps/RecordMeeting.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ struct RecordMeeting {
104104

105105
let secondsPerAttendee = Int(state.syncUp.durationPerAttendee.components.seconds)
106106
if state.secondsElapsed.isMultiple(of: secondsPerAttendee) {
107-
if state.speakerIndex == state.syncUp.attendees.count - 1 {
107+
if state.secondsElapsed == state.syncUp.duration.components.seconds {
108108
return .run { [transcript = state.transcript] send in
109109
await send(.delegate(.save(transcript: transcript)))
110110
await self.dismiss()

0 commit comments

Comments
 (0)