Skip to content

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

feat: Adds id to chat messages internal state.

Дамян Минков615950447837
diff --git a/react/features/chat/reducer.js b/react/features/chat/reducer.js
index 20a4f3d95d..abb553883a 100644
--- a/react/features/chat/reducer.js
+++ b/react/features/chat/reducer.js
@@ -10,6 +10,7 @@ import {
SET_PRIVATE_MESSAGE_RECIPIENT,
SET_IS_POLL_TAB_FOCUSED
} from './actionTypes';
+import { v4 as uuidv4 } from 'uuid';
const DEFAULT_STATE = {
isOpen: false,
@@ -29,6 +30,7 @@ ReducerRegistry.register('features/chat', (state = DEFAULT_STATE, action) => {
error: action.error,
id: action.id,
isReaction: action.isReaction,
+ messageId: uuidv4(),
messageType: action.messageType,
message: action.message,
privateMessage: action.privateMessage,