From bb7fe0c96689e6aa9c6f01bf18e14434b6d018b4 Mon Sep 17 00:00:00 2001 From: Studio-18 Date: Fri, 17 Oct 2025 17:08:24 -0700 Subject: [PATCH] Improve invite roster fallback for open matches --- src/InvitationPage.jsx | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/src/InvitationPage.jsx b/src/InvitationPage.jsx index 34f25dea..fc1c87ce 100644 --- a/src/InvitationPage.jsx +++ b/src/InvitationPage.jsx @@ -1809,12 +1809,25 @@ function getActiveParticipants(match, preview) { const acceptedInvitees = uniqueAcceptedInvitees(inviteeSource); if (!filteredParticipants.length && !acceptedInvitees.length) { + const fallback = filterDisplayableParticipants(participantSource); + if (fallback.length) { + return fallback; + } return []; } - return filterDisplayableParticipants( + const combined = filterDisplayableParticipants( uniqueMatchOccupants(filteredParticipants, acceptedInvitees), ); + + if (!combined.length) { + const fallback = filterDisplayableParticipants(participantSource); + if (fallback.length) { + return fallback; + } + } + + return combined; } function getRosterParticipants(match, preview) { @@ -1865,6 +1878,10 @@ function getRosterParticipants(match, preview) { ]); if (!filteredParticipants.length && !acceptedInvitees.length) { + const fallback = filterDisplayableParticipants(participantSource); + if (fallback.length) { + return fallback; + } return []; } @@ -1876,9 +1893,18 @@ function getRosterParticipants(match, preview) { return filterDisplayableParticipants(acceptedInvitees); } - return filterDisplayableParticipants( + const combined = filterDisplayableParticipants( uniqueMatchOccupants(filteredParticipants, acceptedInvitees), ); + + if (!combined.length) { + const fallback = filterDisplayableParticipants(participantSource); + if (fallback.length) { + return fallback; + } + } + + return combined; } const OPEN_MATCH_PENDING_STATUS_VALUES = new Set([