updated chatlog parser

This commit is contained in:
dank074 2021-10-14 19:49:38 -05:00
parent 78001b6f30
commit 37f0497e71

View File

@ -27,9 +27,9 @@ export const ModToolsChatlogView: FC<ModToolsChatlogViewProps> = props =>
{ {
const parser = event.getParser(); const parser = event.getParser();
setRoomName(parser.name); setRoomName(parser.data.roomName);
setMessages(parser.chatlogs); setMessages(parser.data.chatlog);
setLoadedRoomId(parser.id); setLoadedRoomId(parser.data.roomId);
}, [ setRoomName, setMessages ]); }, [ setRoomName, setMessages ]);
CreateMessageHook(ModtoolRoomChatlogEvent, onModtoolRoomChatlogEvent); CreateMessageHook(ModtoolRoomChatlogEvent, onModtoolRoomChatlogEvent);