Skip to content

Commit 515655a

Browse files
authored
Merge pull request #74017 from samranahm/74000/fix-room-avatar-blank
fix: room avatar is blank when viewed as invited room member
2 parents 70eda4f + 506a8e6 commit 515655a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pages/media/AttachmentModalScreen/routes/report/ReportAvatarModalContent.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ function ReportAvatarModalContent({navigation, route}: AttachmentModalScreenProp
2424
isWorkspaceAvatar: false,
2525
};
2626
}
27-
if (isUserCreatedPolicyRoom(report)) {
27+
if (isUserCreatedPolicyRoom(report) && report?.avatarUrl) {
2828
return {
29-
source: report?.avatarUrl ? getFullSizeAvatar(report.avatarUrl, 0) : undefined,
29+
source: getFullSizeAvatar(report.avatarUrl, 0),
3030
headerTitle: getReportName(report),
3131
isWorkspaceAvatar: false,
3232
};

0 commit comments

Comments
 (0)