You've already forked Nitro_Render_V3
mirror of
https://github.com/duckietm/Nitro_Render_V3.git
synced 2026-06-19 15:06:20 +00:00
SocketConnection parser cast + RoomChatHandler arg-order fix
- SocketConnection.processMessage() did 'new events[0].parserClass()' where parserClass is typed as 'Function' on IMessageEvent (no construct signature). Cast to 'new () => IMessageParser' at the call site so the spawned instance is type-correct downstream. - RoomChatHandler dispatched RoomSessionChatEvent with the args in the wrong order: '[]' (intended as the 'links' array) was landing in the 'chatColours' string slot. Swap to '"", []' so links go to position 8 and chatColours stays a string.
This commit is contained in:
@@ -168,6 +168,6 @@ export class RoomChatHandler extends BaseHandler
|
||||
|
||||
if(!parser) return;
|
||||
|
||||
GetEventDispatcher().dispatchEvent(new RoomSessionChatEvent(RoomSessionChatEvent.CHAT_EVENT, session, session.ownRoomIndex, '', RoomSessionChatEvent.CHAT_TYPE_MUTE_REMAINING, SystemChatStyleEnum.GENERIC, [], null, parser.seconds));
|
||||
GetEventDispatcher().dispatchEvent(new RoomSessionChatEvent(RoomSessionChatEvent.CHAT_EVENT, session, session.ownRoomIndex, '', RoomSessionChatEvent.CHAT_TYPE_MUTE_REMAINING, SystemChatStyleEnum.GENERIC, '', [], parser.seconds));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user