From a2f8a4dd6109986ac295d7d4cdde2a604a8c9011 Mon Sep 17 00:00:00 2001 From: simoleo89 Date: Sat, 13 Jun 2026 16:20:59 +0200 Subject: [PATCH] =?UTF-8?q?fix(room):=20pet-fertilize=20chat=20bubble=20?= =?UTF-8?q?=E2=80=94=20bad=20localization=20key=20+=20wrong=20target=20use?= =?UTF-8?q?r?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Two bugs in the pet rebreed/fertilize chat path: the localization key had a stray trailing semicolon (`'widget.chatbubble.petrefertilized;'`) so the lookup failed and the raw key rendered; and the target user was resolved via `newRoomObject = getRoomObject(event.extraParam)` but then read back by `roomObject.id` (the speaker), so `userName` was the speaker, not the target. Use `newRoomObject.id`. --- src/hooks/rooms/widgets/useChatWidget.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hooks/rooms/widgets/useChatWidget.ts b/src/hooks/rooms/widgets/useChatWidget.ts index ed0b9ed..2853f41 100644 --- a/src/hooks/rooms/widgets/useChatWidget.ts +++ b/src/hooks/rooms/widgets/useChatWidget.ts @@ -148,7 +148,7 @@ const useChatWidgetState = () => if(chatType === RoomSessionChatEvent.CHAT_TYPE_PET_REBREED_FERTILIZE) { - textKey = 'widget.chatbubble.petrefertilized;'; + textKey = 'widget.chatbubble.petrefertilized'; } else if(chatType === RoomSessionChatEvent.CHAT_TYPE_PET_SPEED_FERTILIZE) @@ -162,7 +162,7 @@ const useChatWidgetState = () => if(newRoomObject) { - const newUserData = roomSession.userDataManager.getUserDataByIndex(roomObject.id); + const newUserData = roomSession.userDataManager.getUserDataByIndex(newRoomObject.id); if(newUserData) targetUserName = newUserData.name; }