feat: Adds id to chat messages internal state.
This commit is contained in:
parent
f2efdfcbc1
commit
6159504478
|
@ -10,6 +10,7 @@ import {
|
||||||
SET_PRIVATE_MESSAGE_RECIPIENT,
|
SET_PRIVATE_MESSAGE_RECIPIENT,
|
||||||
SET_IS_POLL_TAB_FOCUSED
|
SET_IS_POLL_TAB_FOCUSED
|
||||||
} from './actionTypes';
|
} from './actionTypes';
|
||||||
|
import { v4 as uuidv4 } from 'uuid';
|
||||||
|
|
||||||
const DEFAULT_STATE = {
|
const DEFAULT_STATE = {
|
||||||
isOpen: false,
|
isOpen: false,
|
||||||
|
@ -29,6 +30,7 @@ ReducerRegistry.register('features/chat', (state = DEFAULT_STATE, action) => {
|
||||||
error: action.error,
|
error: action.error,
|
||||||
id: action.id,
|
id: action.id,
|
||||||
isReaction: action.isReaction,
|
isReaction: action.isReaction,
|
||||||
|
messageId: uuidv4(),
|
||||||
messageType: action.messageType,
|
messageType: action.messageType,
|
||||||
message: action.message,
|
message: action.message,
|
||||||
privateMessage: action.privateMessage,
|
privateMessage: action.privateMessage,
|
||||||
|
|
Loading…
Reference in New Issue