Preact: Fix tab complete in battles (#2431)
Some checks are pending
Node.js CI / build (22.x) (push) Waiting to run

---------

Co-authored-by: Guangcong Luo <guangcongluo@gmail.com>
This commit is contained in:
Aurastic 2025-05-19 13:24:35 +05:30 committed by GitHub
parent fbd905acb9
commit de13c8c5d4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -110,7 +110,7 @@ export class ChatRoom extends PSRoom {
if (args[0] === 'c:') PS.lastMessageTime = args[1]; if (args[0] === 'c:') PS.lastMessageTime = args[1];
this.lastMessage = args; this.lastMessage = args;
this.joinLeave = null; this.joinLeave = null;
this.markUserActive(args[2]); this.markUserActive(args[args[0] === 'c:' ? 2 : 1]);
if (this.tour) this.tour.joinLeave = null; if (this.tour) this.tour.joinLeave = null;
this.subtleNotify(); this.subtleNotify();
break; break;