Avatar: Disable MV in Saved Messages (#5789)
This commit is contained in:
parent
4aa7ffd9df
commit
9a2f47c619
@ -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;
|
||||
}
|
||||
|
||||
@ -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}
|
||||
|
||||
@ -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()}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user