Skip to content

Commit

Permalink
Merge pull request Expensify#49182 from bernhardoj/fix/48577-removed-…
Browse files Browse the repository at this point in the history
…user-shown-as-hidden

Don't allow deleting optimistic invited room member
  • Loading branch information
arosiclair authored Sep 16, 2024
2 parents d54cbf8 + 87b572b commit 9b25c13
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/RoomMembersPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,8 @@ function RoomMembersPage({report, session, policies}: RoomMembersPageProps) {
(isPolicyExpenseChat && isAdmin) ||
accountID === session?.accountID ||
pendingChatMember?.pendingAction === CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE ||
details.accountID === report.ownerAccountID;
details.accountID === report.ownerAccountID ||
details.isOptimisticPersonalDetail;

result.push({
keyForList: String(accountID),
Expand Down

0 comments on commit 9b25c13

Please sign in to comment.