From 9a2f47c619d603468f24b89b4227d79197b6c5bf Mon Sep 17 00:00:00 2001 From: zubiden <19638254+zubiden@users.noreply.github.com> Date: Fri, 4 Apr 2025 13:04:03 +0200 Subject: [PATCH] Avatar: Disable MV in Saved Messages (#5789) --- src/components/common/FullNameTitle.module.scss | 8 ++++---- src/components/common/FullNameTitle.tsx | 4 ++-- src/components/common/PrivateChatInfo.tsx | 4 +++- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/components/common/FullNameTitle.module.scss b/src/components/common/FullNameTitle.module.scss index cae852546..54dade8fa 100644 --- a/src/components/common/FullNameTitle.module.scss +++ b/src/components/common/FullNameTitle.module.scss @@ -14,9 +14,9 @@ } } - .transition { - height: 1.5em; - width: 1.5em; + .statusTransition { + height: 1.5em !important; + width: 1.5em !important; } } @@ -33,7 +33,7 @@ } } -.transitionSlide { +.statusTransitionSlide { display: flex; align-items: center; } diff --git a/src/components/common/FullNameTitle.tsx b/src/components/common/FullNameTitle.tsx index 56c6df920..ddc3acc7c 100644 --- a/src/components/common/FullNameTitle.tsx +++ b/src/components/common/FullNameTitle.tsx @@ -140,8 +140,8 @@ const FullNameTitle: FC = ({ {!noFake && peer?.fakeType && } {canShowEmojiStatus && emojiStatus && ( = ({ const { id: userId } = user || {}; + const hasAvatarMediaViewer = withMediaViewer && !isSavedMessages; + useEffect(() => { if (userId) { if (withFullInfo && isSynced) loadFullUser({ userId }); @@ -246,7 +248,7 @@ const PrivateChatInfo: FC = ({ withStory={withStory} storyViewerOrigin={storyViewerOrigin} storyViewerMode="single-peer" - onClick={withMediaViewer ? handleAvatarViewerOpen : undefined} + onClick={hasAvatarMediaViewer ? handleAvatarViewerOpen : undefined} />
{renderNameTitle()}