From 94e25d9bb458322d23d5f9c61714bec0a647522b Mon Sep 17 00:00:00 2001 From: spaced4ndy <8711996+spaced4ndy@users.noreply.github.com> Date: Wed, 19 Jul 2023 20:48:47 +0400 Subject: [PATCH] ios: fix pull to refresh affecting pending connection sheet in chat list (#2724) --- apps/ios/Shared/Views/ChatList/ChatListNavLink.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/ios/Shared/Views/ChatList/ChatListNavLink.swift b/apps/ios/Shared/Views/ChatList/ChatListNavLink.swift index b41c63286..2521c919a 100644 --- a/apps/ios/Shared/Views/ChatList/ChatListNavLink.swift +++ b/apps/ios/Shared/Views/ChatList/ChatListNavLink.swift @@ -263,6 +263,7 @@ struct ChatListNavLink: View { .sheet(isPresented: $showContactConnectionInfo) { if case let .contactConnection(contactConnection) = chat.chatInfo { ContactConnectionInfo(contactConnection: contactConnection) + .environment(\EnvironmentValues.refresh as! WritableKeyPath, nil) } } .onTapGesture { @@ -379,6 +380,7 @@ struct ChatListNavLink: View { .onTapGesture { showInvalidJSON = true } .sheet(isPresented: $showInvalidJSON) { invalidJSONView(json) + .environment(\EnvironmentValues.refresh as! WritableKeyPath, nil) } } }