From 13c6e1ab604c1f76a74754e765fb8992af16253b Mon Sep 17 00:00:00 2001 From: Alexander Zinchuk Date: Fri, 6 Sep 2024 15:43:32 +0200 Subject: [PATCH] Profile: Fix undefined media in the Voice tab (#4952) --- src/components/right/Profile.tsx | 36 +++++++++++++++++++------------- 1 file changed, 21 insertions(+), 15 deletions(-) diff --git a/src/components/right/Profile.tsx b/src/components/right/Profile.tsx index 0468d4bfc..ccaef312f 100644 --- a/src/components/right/Profile.tsx +++ b/src/components/right/Profile.tsx @@ -32,6 +32,7 @@ import { getIsDownloading, getIsSavedDialog, getMessageDocument, + getMessageDownloadableMedia, isChatAdmin, isChatChannel, isChatGroup, @@ -584,21 +585,26 @@ const Profile: FC = ({ /> )) ) : resultType === 'voice' ? ( - (viewportIds as number[])!.map((id) => messagesById[id] && ( -