From 6c80aa25a20659619a93585fba8b457646ee17cd Mon Sep 17 00:00:00 2001 From: Aurastic <33085835+ISenseAura@users.noreply.github.com> Date: Tue, 6 May 2025 20:54:20 +0530 Subject: [PATCH] Preact: Fix users list not updating on autoreconnect (#2407) --- play.pokemonshowdown.com/src/panel-chat.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/play.pokemonshowdown.com/src/panel-chat.tsx b/play.pokemonshowdown.com/src/panel-chat.tsx index 34a7fe11a..482fcdf74 100644 --- a/play.pokemonshowdown.com/src/panel-chat.tsx +++ b/play.pokemonshowdown.com/src/panel-chat.tsx @@ -131,6 +131,9 @@ export class ChatRoom extends PSRoom { const cutOffExactLine = this.lastMessage ? '|' + this.lastMessage?.join('|') : ''; let reconnectMessage = '|raw|
You reconnected.
'; for (let i = 0; i < lines.length; i++) { + if (lines[i].startsWith('|users|')) { + this.add(lines[i]); + } if (lines[i] === cutOffExactLine) { cutOffStart = i + 1; } else if (lines[i].startsWith(`|c:|`)) {