Fixes #2325 - Prevent the same WebView from being reused for multiple Element Call links

This commit is contained in:
Stefan Ceriu
2024-01-16 09:15:09 +02:00
parent 587036b4cd
commit ea1beda6d6
3 changed files with 3 additions and 0 deletions

View File

@@ -23,6 +23,7 @@ struct CallScreen: View {
var body: some View {
WebView(url: context.viewState.url, viewModelContext: context)
.id(UUID())
.ignoresSafeArea(edges: .bottom)
.presentationDragIndicator(.visible)
.environment(\.colorScheme, .dark)

View File

@@ -36,6 +36,7 @@ class GenericCallLinkCoordinator: CoordinatorProtocol {
func toPresentable() -> AnyView {
AnyView(
WebView(url: parameters.url)
.id(UUID())
.ignoresSafeArea(edges: .bottom)
.presentationDragIndicator(.visible)
)

1
changelog.d/2325.bugfix Normal file
View File

@@ -0,0 +1 @@
Prevent the same WebView from being reused for multiple Element Call links