Skip to content

Commit

Permalink
Fixes #2325 - Prevent the same WebView from being reused for multiple…
Browse files Browse the repository at this point in the history
… Element Call links
  • Loading branch information
stefanceriu committed Jan 17, 2024
1 parent b21194b commit bc7959e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions ElementX/Sources/Screens/CallScreen/View/CallScreen.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ class GenericCallLinkCoordinator: CoordinatorProtocol {
func toPresentable() -> AnyView {
AnyView(
WebView(url: parameters.url)
.id(UUID())
.ignoresSafeArea(edges: .bottom)
.presentationDragIndicator(.visible)
)
Expand Down
1 change: 1 addition & 0 deletions changelog.d/2325.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Prevent the same WebView from being reused for multiple Element Call links

0 comments on commit bc7959e

Please sign in to comment.