Avatar: Disable MV in Saved Messages (#5789)

This commit is contained in:
zubiden 2025-04-04 13:04:03 +02:00 committed by Alexander Zinchuk
parent 4aa7ffd9df
commit 9a2f47c619
3 changed files with 9 additions and 7 deletions

View File

@ -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;
}

View File

@ -140,8 +140,8 @@ const FullNameTitle: FC<OwnProps> = ({
{!noFake && peer?.fakeType && <FakeIcon fakeType={peer.fakeType} />}
{canShowEmojiStatus && emojiStatus && (
<Transition
className={styles.transition}
slideClassName={styles.transitionSlide}
className={styles.statusTransition}
slideClassName={styles.statusTransitionSlide}
activeKey={Number(emojiStatus.documentId)}
name="slideFade"
direction={-1}

View File

@ -112,6 +112,8 @@ const PrivateChatInfo: FC<OwnProps & StateProps> = ({
const { id: userId } = user || {};
const hasAvatarMediaViewer = withMediaViewer && !isSavedMessages;
useEffect(() => {
if (userId) {
if (withFullInfo && isSynced) loadFullUser({ userId });
@ -246,7 +248,7 @@ const PrivateChatInfo: FC<OwnProps & StateProps> = ({
withStory={withStory}
storyViewerOrigin={storyViewerOrigin}
storyViewerMode="single-peer"
onClick={withMediaViewer ? handleAvatarViewerOpen : undefined}
onClick={hasAvatarMediaViewer ? handleAvatarViewerOpen : undefined}
/>
<div className="info">
{renderNameTitle()}