Skip to content

Commit

Permalink
Merge pull request #46825 from Expensify/dangrous-fixroommembercount
Browse files Browse the repository at this point in the history
Send optimistic IDs to InviteToRoom so they can be removed
  • Loading branch information
techievivek committed Aug 6, 2024
2 parents 984fd39 + 57df972 commit 934797e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/libs/API/parameters/InviteToRoomParams.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
type InviteToRoomParams = {
reportID: string;
inviteeEmails: string[];
accountIDList: string;
};

export default InviteToRoomParams;
1 change: 1 addition & 0 deletions src/libs/actions/Report.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2887,6 +2887,7 @@ function inviteToRoom(reportID: string, inviteeEmailsToAccountIDs: InvitedEmails
const parameters: InviteToRoomParams = {
reportID,
inviteeEmails,
accountIDList: newAccountIDs.join(),
};

// eslint-disable-next-line rulesdir/no-multiple-api-calls
Expand Down

0 comments on commit 934797e

Please sign in to comment.