Handle links in direct message

This commit is contained in:
Thomas Ricouard 2023-01-23 18:43:57 +01:00
parent f718755120
commit a51e81102e

View file

@ -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)