Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(message/notification): use unique keys for url tokens (#11809)

Mihaela Dumitrua685f096a002
diff --git a/react/features/base/react/components/web/Message.js b/react/features/base/react/components/web/Message.js
index 6469f1f6d8..8ce84075f4 100644
--- a/react/features/base/react/components/web/Message.js
+++ b/react/features/base/react/components/web/Message.js
@@ -70,9 +70,9 @@ class Message extends Component<Props> {
}
}
- content.forEach(token => {
+ content.forEach((token, index) => {
if (typeof token === 'string' && token !== ' ') {
- message.push(<Linkify key = { token }>{ token }</Linkify>);
+ message.push(<Linkify key = { `${token}-${index}` }>{ token }</Linkify>);
} else {
message.push(token);
}