fix(moderation): don't show pending invitation for users already in room

Fixed logic error where users currently in the room would still show
a "Pending invitation" indicator in the History tab. The invitation
status should only be displayed for users who are:
- Not currently in the room
- Not banned
- Have a pending invitation

This prevents the confusing UI state where a user appears to be
both "In Room" and have a "Pending invitation" at the same time.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Thomas Hallock
2025-10-13 13:00:31 -05:00
parent 3a9016977d
commit fae5920e2f

View File

@@ -913,7 +913,8 @@ export function ModerationPanel({
{new Date(member.firstJoinedAt).toLocaleDateString()}
</div>
{member.invitationStatus === 'pending' &&
!member.isBanned && (
!member.isBanned &&
!member.isCurrentlyInRoom && (
<div
style={{
fontSize: '11px',