🐛(frontend) make link in the chat clickable

This is based on LiveKit demo app.
Used the LiveKit default chat messages formatter to make the link
clickable by any user.
This commit is contained in:
lebaudantoine
2024-08-02 14:55:49 +02:00
committed by aleb_the_flash
parent 2416ca1127
commit 8115a39538

View File

@@ -1,6 +1,7 @@
import { useEffect, useMemo, useState } from 'react'
import { useQuery } from '@tanstack/react-query'
import {
formatChatMessageLinks,
LiveKitRoom,
VideoConference,
type LocalUserChoices,
@@ -83,7 +84,9 @@ export const Conference = ({
audio={userConfig.audioEnabled}
video={userConfig.videoEnabled}
>
<VideoConference />
<VideoConference
chatMessageFormatter={formatChatMessageLinks}
/>
{showInviteDialog && (
<InviteDialog
isOpen={showInviteDialog}