Skip to content

Commit

Permalink
Room-Invited room avatar looks different
Browse files Browse the repository at this point in the history
  • Loading branch information
tienifr committed Feb 2, 2024
1 parent d9fd412 commit 9fca5ec
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 9fca5ec

Please sign in to comment.