Skip to content

Commit

Permalink
Make listUserInvitations ignore shamir recovery invitations
Browse files Browse the repository at this point in the history
  • Loading branch information
vxgmichel committed Nov 8, 2024
1 parent 6b87731 commit e7c8998
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/parsec/invitation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export async function listUserInvitations(options?: {
includeFinished?: boolean;
}): Promise<Result<Array<UserInvitation>, ListInvitationsError>> {
function shouldIncludeInvitation(invite: InviteListItem): boolean {
if (invite.tag === InviteListItemTag.Device) {
if (invite.tag !== InviteListItemTag.User) {
return false;
}
if (invite.status === InvitationStatus.Cancelled && (!options || !options.includeCancelled)) {
Expand Down

0 comments on commit e7c8998

Please sign in to comment.