File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -122,7 +122,11 @@ final class AgentSession: ObservableObject {
122122
123123 do {
124124 if preConnectAudio {
125- try await room. withPreConnectAudio { try await connection ( ) }
125+ try await room. withPreConnectAudio ( timeout: waitForAgent) {
126+ await MainActor . run { self . isListening = true }
127+ try await connection ( )
128+ await MainActor . run { self . isListening = false }
129+ }
126130 } else {
127131 try await connection ( )
128132 }
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ struct AppView: View {
4444 . animation ( . default, value: session. isScreenShareEnabled)
4545 . animation ( . default, value: session. error? . localizedDescription)
4646 #if os(iOS)
47- . sensoryFeedback( . impact, trigger: session. isListening)
47+ . sensoryFeedback( . impact, trigger: session. isListening) { !$0 && $1 }
4848 #endif
4949 }
5050
You can’t perform that action at this time.
0 commit comments