From a51e81102e7307590a4e8b1344d371ad572a5b4b Mon Sep 17 00:00:00 2001 From: Thomas Ricouard Date: Mon, 23 Jan 2023 18:43:57 +0100 Subject: [PATCH] Handle links in direct message --- .../Sources/Conversations/Detail/ConversationMessageView.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Packages/Conversations/Sources/Conversations/Detail/ConversationMessageView.swift b/Packages/Conversations/Sources/Conversations/Detail/ConversationMessageView.swift index f895fe68..ef58abfb 100644 --- a/Packages/Conversations/Sources/Conversations/Detail/ConversationMessageView.swift +++ b/Packages/Conversations/Sources/Conversations/Detail/ConversationMessageView.swift @@ -33,6 +33,9 @@ struct ConversationMessageView: View { EmojiTextApp(message.content, emojis: message.emojis) .font(.scaledBody) .padding(6) + .environment(\.openURL, OpenURLAction { url in + routerPath.handleStatus(status: message, url: url) + }) } .background(isOwnMessage ? theme.tintColor.opacity(0.2) : theme.secondaryBackgroundColor) .cornerRadius(8)