Fixes #2878 - Retain cycles on the ElementCall webView and correctly tear down the call on dismissal.

This commit is contained in:
Stefan Ceriu
2024-05-24 13:09:52 +03:00
committed by Stefan Ceriu
parent 8bfd802793
commit f8d094516d
11 changed files with 77 additions and 21 deletions
@@ -55,6 +55,10 @@ final class CallScreenCoordinator: CoordinatorProtocol {
}
.store(in: &cancellables)
}
func stop() {
viewModel.stop()
}
func toPresentable() -> AnyView {
AnyView(CallScreen(context: viewModel.context))