mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-13 09:34:47 -07:00
WebClient: refactor protobuf method structure (#5014)
This commit is contained in:
parent
f174614496
commit
be5d42baba
53 changed files with 1014 additions and 1263 deletions
9
webclient/src/websocket/events/room/roomSay.ts
Normal file
9
webclient/src/websocket/events/room/roomSay.ts
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
import { Message } from 'types';
|
||||
|
||||
import { RoomPersistence } from '../../persistence';
|
||||
import { RoomEvent } from './interfaces';
|
||||
|
||||
export function roomSay(message: Message, { roomEvent }: RoomEvent) {
|
||||
const { roomId } = roomEvent;
|
||||
RoomPersistence.addMessage(roomId, message);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue