Skip to content

Commit 3c0bf7a

Browse files
authored
[Fix]Avoid updating callControls while in-call (#800)
1 parent 84298e8 commit 3c0bf7a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Sources/StreamVideoSwiftUI/CallView/CallControls/Stateful/CallControlsView.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@ public struct CallControlsView: View {
3939
.padding(.horizontal, 16)
4040
.padding(.vertical)
4141
.frame(maxWidth: .infinity)
42-
.onReceive(viewModel.call?.state.$ownCapabilities.receive(on: DispatchQueue.main)) { ownCapabilities = $0 }
43-
.onReceive(streamVideo.state.ringingCall?.state.$ownCapabilities.receive(on: DispatchQueue.main)) { ownCapabilities = $0 }
42+
.onReceive(call?.state.$ownCapabilities.receive(on: DispatchQueue.main)) { ownCapabilities = $0 }
4443
}
4544

4645
private var call: Call? {

0 commit comments

Comments
 (0)