ios: fix pull to refresh affecting pending connection sheet in chat list (#2724)

This commit is contained in:
spaced4ndy
2023-07-19 20:48:47 +04:00
committed by GitHub
parent 369d411fc1
commit 94e25d9bb4

View File

@@ -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<EnvironmentValues, RefreshAction?>, nil)
}
}
.onTapGesture {
@@ -379,6 +380,7 @@ struct ChatListNavLink: View {
.onTapGesture { showInvalidJSON = true }
.sheet(isPresented: $showInvalidJSON) {
invalidJSONView(json)
.environment(\EnvironmentValues.refresh as! WritableKeyPath<EnvironmentValues, RefreshAction?>, nil)
}
}
}