[feature] chat component can now show clickable urls

This commit is contained in:
Markus 2023-07-19 11:56:38 +02:00
parent 7dbae3f5c4
commit 02cbe6c19b

View File

@ -315,6 +315,12 @@ export default {
this.messagesLoaded = true
}
this.messagePage += 1
// hacky way to make urls clickable for the chat component
// --> linkify in the backend is changing the syntax of the url
this.messages.forEach((msg) => {
msg.content = msg.content.replace(/<\/?a[^>]*>/g, '')
})
} catch (error) {
this.messages = []
this.$toast.error(error.message)