mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-05-09 04:23:01 -05:00
Preact: Fix old status not clearing in userdetails cache (#2663)
This commit is contained in:
parent
eeab7e68ae
commit
90fdf398bb
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user