Skip to content

Commit d48d5bd

Browse files
committed
Fix - Leave option is not shown for IOU invite
1 parent 44d8ae5 commit d48d5bd

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/libs/ReportUtils.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9782,6 +9782,10 @@ function canLeaveChat(report: OnyxEntry<Report>, policy: OnyxEntry<Policy>, isRe
97829782
return true;
97839783
}
97849784

9785+
if (isMoneyRequestReport(report) && currentUserAccountID !== report?.managerID && currentUserAccountID !== report?.ownerAccountID && !isPolicyAdminPolicyUtils(policy)) {
9786+
return true;
9787+
}
9788+
97859789
if (isPublicRoom(report) && isAnonymousUserSession()) {
97869790
return false;
97879791
}

0 commit comments

Comments
 (0)