Skip to content

Commit

Permalink
Merge pull request #11022 from Expensify/francois-fixWorkspaceInviteP…
Browse files Browse the repository at this point in the history
…ageAvatars

Use existing personal details' avatar when it exists

(cherry picked from commit 958e3e1)
  • Loading branch information
francoisl authored and OSBotify committed Sep 15, 2022
1 parent 9e667d4 commit dad92b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libs/OptionsListUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ function createOption(logins, personalDetails, report, reportActions = {}, {

const personalDetailMap = getPersonalDetailsForLogins(logins, personalDetails);
const personalDetailList = _.values(personalDetailMap);
const personalDetail = personalDetailList[0];
const personalDetail = personalDetailList[0] || {};
let hasMultipleParticipants = personalDetailList.length > 1;
let subtitle;

Expand Down Expand Up @@ -349,7 +349,7 @@ function createOption(logins, personalDetails, report, reportActions = {}, {
result.text = reportName;
result.subtitle = subtitle;
result.participantsList = personalDetailList;
result.icons = ReportUtils.getIcons(report, personalDetails, policies);
result.icons = ReportUtils.getIcons(report, personalDetails, policies, personalDetail.avatar);
result.searchText = getSearchText(report, reportName, personalDetailList, result.isChatRoom || result.isPolicyExpenseChat);

return result;
Expand Down

0 comments on commit dad92b8

Please sign in to comment.