mirror of
https://github.com/owncast/owncast.git
synced 2024-12-21 08:49:16 +03:00
12 lines
341 B
TypeScript
12 lines
341 B
TypeScript
|
import { ChatMessage } from '../../../interfaces/chat-message.model';
|
||
|
import { ChatEvent } from '../../../interfaces/socket-events';
|
||
|
|
||
|
export default function handleNameChangeEvent(
|
||
|
message: ChatEvent,
|
||
|
messages: ChatMessage[],
|
||
|
setChatMessages,
|
||
|
) {
|
||
|
const updatedMessages = [...messages, message];
|
||
|
setChatMessages(updatedMessages);
|
||
|
}
|