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 16, 2024
1 parent b21194b commit 8ab3d19
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ElementX/Sources/Mocks/Generated/GeneratedMocks.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated using Sourcery 2.1.3 — https://github.com/krzysztofzablocki/Sourcery
// Generated using Sourcery 2.1.2 — https://github.com/krzysztofzablocki/Sourcery
// DO NOT EDIT

// swiftlint:disable all
Expand Down
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 8ab3d19

Please sign in to comment.