Skip to content

Commit

Permalink
Merge pull request #35630 from tienifr/fix/35262
Browse files Browse the repository at this point in the history
Fix: Room-Invited room avatar looks different
  • Loading branch information
srikarparsi authored Feb 12, 2024
2 parents 4bb42fa + 9fca5ec commit 55af216
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/pages/ReportAvatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,8 @@ type ReportAvatarProps = ReportAvatarOnyxProps & StackScreenProps<AuthScreensPar

function ReportAvatar({report = {} as Report, policies, isLoadingApp = true}: ReportAvatarProps) {
const policy = policies?.[`${ONYXKEYS.COLLECTION.POLICY}${report?.policyID ?? '0'}`];
const isArchivedRoom = ReportUtils.isArchivedRoom(report);
const policyName = isArchivedRoom ? report?.oldPolicyName : policy?.name;
const avatarURL = policy?.avatar ?? '' ? policy?.avatar ?? '' : ReportUtils.getDefaultWorkspaceAvatar(policyName);
const policyName = ReportUtils.getPolicyName(report, false, policy);
const avatarURL = ReportUtils.getWorkspaceAvatar(report);

return (
<AttachmentModal
Expand Down

0 comments on commit 55af216

Please sign in to comment.