Open source video conferencing app powered by LiveKit. Built with Django and React.
🐛(frontend) preserve line breaks and whitespace in chat messages
lebaudantoinee5fe81de4df8
diff --git a/src/frontend/src/features/rooms/livekit/components/chat/Entry.tsx b/src/frontend/src/features/rooms/livekit/components/chat/Entry.tsxindex 825ba211..2981f8a9 100644--- a/src/frontend/src/features/rooms/livekit/components/chat/Entry.tsx+++ b/src/frontend/src/features/rooms/livekit/components/chat/Entry.tsx@@ -19,7 +19,6 @@ export const ChatEntry: ({ entry, hideMetadata = false, messageFormatter, ...props }: ChatEntryProps,ref) {- // Fixme - Livekit messageFormatter strips '\n' charconst formattedMessage = React.useMemo(() => {return messageFormatter ? messageFormatter(entry.message) : entry.message}, [entry.message, messageFormatter])@@ -58,6 +57,7 @@ export const ChatEntry: (variant="sm"margin={false}className={css({+ whiteSpace: 'pre-wrap','& .lk-chat-link': {color: 'blue',textDecoration: 'underline',