owncast/web/components/stores/eventhandlers/connected-client-info-handler.ts

11 lines
315 B
TypeScript
Raw Normal View History

import { ConnectedClientInfoEvent } from '../../../interfaces/socket-events';
export default function handleConnectedClientInfoMessage(
message: ConnectedClientInfoEvent,
setChatDisplayName: (string) => void,
) {
const { user } = message;
const { displayName } = user;
setChatDisplayName(displayName);
}