mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-03-21 17:50:29 -05:00
Preact: Fix users list not updating on autoreconnect (#2407)
This commit is contained in:
parent
d92db3b07b
commit
6c80aa25a2
|
|
@ -131,6 +131,9 @@ export class ChatRoom extends PSRoom {
|
|||
const cutOffExactLine = this.lastMessage ? '|' + this.lastMessage?.join('|') : '';
|
||||
let reconnectMessage = '|raw|<div class="infobox">You reconnected.</div>';
|
||||
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:|`)) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user