Skip to content

Commit

Permalink
Merge pull request #30836 from tienifr/fix/30274
Browse files Browse the repository at this point in the history
Fix: Room - Removed users not display in Invite page
  • Loading branch information
Julesssss authored Nov 10, 2023
2 parents 0888bda + 3b855b3 commit 358e4b1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/RoomInvitePage.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import compose from '@libs/compose';
import Navigation from '@libs/Navigation/Navigation';
import * as OptionsListUtils from '@libs/OptionsListUtils';
import Permissions from '@libs/Permissions';
import * as PersonalDetailsUtils from '@libs/PersonalDetailsUtils';
import * as PolicyUtils from '@libs/PolicyUtils';
import * as ReportUtils from '@libs/ReportUtils';
import styles from '@styles/styles';
Expand Down Expand Up @@ -69,7 +70,7 @@ function RoomInvitePage(props) {
const [userToInvite, setUserToInvite] = useState(null);

// Any existing participants and Expensify emails should not be eligible for invitation
const excludedUsers = useMemo(() => [...lodashGet(props.report, 'participants', []), ...CONST.EXPENSIFY_EMAILS], [props.report]);
const excludedUsers = useMemo(() => [...PersonalDetailsUtils.getLoginsByAccountIDs(lodashGet(props.report, 'participantAccountIDs', [])), ...CONST.EXPENSIFY_EMAILS], [props.report]);

useEffect(() => {
// Kick the user out if they tried to navigate to this via the URL
Expand Down

0 comments on commit 358e4b1

Please sign in to comment.