From 90fdf398bbccd60b85ccdbce2c22165b338fed82 Mon Sep 17 00:00:00 2001 From: Aurastic <33085835+ISenseAura@users.noreply.github.com> Date: Fri, 8 May 2026 08:11:39 +0530 Subject: [PATCH] Preact: Fix old status not clearing in userdetails cache (#2663) --- play.pokemonshowdown.com/src/panel-chat.tsx | 5 ----- play.pokemonshowdown.com/src/panel-mainmenu.tsx | 1 + 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/play.pokemonshowdown.com/src/panel-chat.tsx b/play.pokemonshowdown.com/src/panel-chat.tsx index bac713032..87d829946 100644 --- a/play.pokemonshowdown.com/src/panel-chat.tsx +++ b/play.pokemonshowdown.com/src/panel-chat.tsx @@ -734,11 +734,6 @@ export class ChatRoom extends PSRoom { } handleJoinLeave(action: 'join' | 'leave', name: string, silent: boolean) { - if (action === 'join') { - this.addUser(name); - } else if (action === 'leave') { - this.removeUser(name); - } const showjoins = PS.prefs.showjoins?.[PS.server.id]; if (!(showjoins?.[this.id] ?? showjoins?.['global'] ?? !silent)) return; diff --git a/play.pokemonshowdown.com/src/panel-mainmenu.tsx b/play.pokemonshowdown.com/src/panel-mainmenu.tsx index 201401046..142ac3da0 100644 --- a/play.pokemonshowdown.com/src/panel-mainmenu.tsx +++ b/play.pokemonshowdown.com/src/panel-mainmenu.tsx @@ -402,6 +402,7 @@ export class MainMenuRoom extends PSRoom { if (!userdetails) { this.userdetailsCache[userid] = response; } else { + response.status ||= ''; Object.assign(userdetails, response); } PS.rooms[`user-${userid}`]?.update(null);