Skip to content

Commit 1284648

Browse files
committed
[Fix]Reactions not showing up on Demo
1 parent bb6dca5 commit 1284648

File tree

1 file changed

+17
-18
lines changed

1 file changed

+17
-18
lines changed

DemoApp/Sources/Components/DemoAppViewFactory.swift

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -90,24 +90,23 @@ final class DemoAppViewFactory: ViewFactory {
9090
availableFrame: CGRect,
9191
onChangeTrackVisibility: @escaping @MainActor(CallParticipant, Bool) -> Void
9292
) -> some View {
93-
DefaultViewFactory
94-
.shared
95-
.makeVideoParticipantsView(
96-
viewModel: viewModel,
97-
availableFrame: availableFrame,
98-
onChangeTrackVisibility: onChangeTrackVisibility
99-
)
100-
.snapshot(trigger: snapshotTrigger) { [weak viewModel] snapshot in
101-
Task { @MainActor [weak viewModel] in
102-
viewModel?.sendSnapshot(snapshot)
103-
}
93+
VideoParticipantsView(
94+
viewFactory: self,
95+
viewModel: viewModel,
96+
availableFrame: availableFrame,
97+
onChangeTrackVisibility: onChangeTrackVisibility
98+
)
99+
.snapshot(trigger: snapshotTrigger) { [weak viewModel] snapshot in
100+
Task { @MainActor [weak viewModel] in
101+
viewModel?.sendSnapshot(snapshot)
104102
}
105-
.overlay(
106-
VStack {
107-
Spacer()
108-
DemoClosedCaptionsView(viewModel)
109-
.padding(.bottom, 30)
110-
}
111-
)
103+
}
104+
.overlay(
105+
VStack {
106+
Spacer()
107+
DemoClosedCaptionsView(viewModel)
108+
.padding(.bottom, 30)
109+
}
110+
)
112111
}
113112
}

0 commit comments

Comments
 (0)