Honour in app browser settings when opening profile about fields

This commit is contained in:
Thomas Ricouard 2023-02-19 15:32:56 +01:00
parent ccc504fc6f
commit 942279e482

View file

@ -236,8 +236,7 @@ struct AccountDetailHeaderView: View {
EmojiTextApp(field.value, emojis: viewModel.account?.emojis ?? []) EmojiTextApp(field.value, emojis: viewModel.account?.emojis ?? [])
.foregroundColor(theme.tintColor) .foregroundColor(theme.tintColor)
.environment(\.openURL, OpenURLAction { url in .environment(\.openURL, OpenURLAction { url in
UIApplication.shared.open(url) routerPath.handle(url: url)
return .handled
}) })
} }
.font(.scaledBody) .font(.scaledBody)