Bug Fix : Crash if the room has avatar and voice broadcast tiles

This commit is contained in:
Giom Foret
2022-10-28 14:54:50 +02:00
parent eafdf53af8
commit 9d6aa2e5d6
2 changed files with 6 additions and 2 deletions
@@ -56,7 +56,9 @@ final class VoiceBroadcastRecorderCoordinator: Coordinator, Presentable {
func start() { }
func toPresentable() -> UIViewController {
VectorHostingController(rootView: VoiceBroadcastRecorderView(viewModel: voiceBroadcastRecorderViewModel.context))
let view = VoiceBroadcastRecorderView(viewModel: voiceBroadcastRecorderViewModel.context)
.addDependency(AvatarService.instantiate(mediaManager: parameters.session.mediaManager))
return VectorHostingController(rootView: view)
}
func pauseRecording() {