Skip to content

Conversation

@TurboRx
Copy link

@TurboRx TurboRx commented Nov 21, 2025

users' idle indicators (@!) sometimes remained visible in the userlist even after they became active, particularly in rooms with custom rules or tournaments. the namecolor would update correctly but the idle marker would not clear.

Root Cause

when addUser() updates an existing user's entry, it modifies onlineUsers[index] but doesn't re-sort the list. Since the sort key includes idle state (!name.endsWith('@!')), stale entries remain in the wrong position with incorrect idle indicators.

}

handleJoinLeave(action: 'join' | 'leave', name: string, silent: boolean) {
if (action === 'join') {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch

@TurboRx TurboRx changed the title Fix idle indicator persisting in userlist after users become active Preact: Fix idle indicator persisting in userlist after users become active Dec 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants