Avatar: Disable MV in Saved Messages (#5789)
This commit is contained in:
parent
4aa7ffd9df
commit
9a2f47c619
@ -14,9 +14,9 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.transition {
|
.statusTransition {
|
||||||
height: 1.5em;
|
height: 1.5em !important;
|
||||||
width: 1.5em;
|
width: 1.5em !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -33,7 +33,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.transitionSlide {
|
.statusTransitionSlide {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -140,8 +140,8 @@ const FullNameTitle: FC<OwnProps> = ({
|
|||||||
{!noFake && peer?.fakeType && <FakeIcon fakeType={peer.fakeType} />}
|
{!noFake && peer?.fakeType && <FakeIcon fakeType={peer.fakeType} />}
|
||||||
{canShowEmojiStatus && emojiStatus && (
|
{canShowEmojiStatus && emojiStatus && (
|
||||||
<Transition
|
<Transition
|
||||||
className={styles.transition}
|
className={styles.statusTransition}
|
||||||
slideClassName={styles.transitionSlide}
|
slideClassName={styles.statusTransitionSlide}
|
||||||
activeKey={Number(emojiStatus.documentId)}
|
activeKey={Number(emojiStatus.documentId)}
|
||||||
name="slideFade"
|
name="slideFade"
|
||||||
direction={-1}
|
direction={-1}
|
||||||
|
|||||||
@ -112,6 +112,8 @@ const PrivateChatInfo: FC<OwnProps & StateProps> = ({
|
|||||||
|
|
||||||
const { id: userId } = user || {};
|
const { id: userId } = user || {};
|
||||||
|
|
||||||
|
const hasAvatarMediaViewer = withMediaViewer && !isSavedMessages;
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (userId) {
|
if (userId) {
|
||||||
if (withFullInfo && isSynced) loadFullUser({ userId });
|
if (withFullInfo && isSynced) loadFullUser({ userId });
|
||||||
@ -246,7 +248,7 @@ const PrivateChatInfo: FC<OwnProps & StateProps> = ({
|
|||||||
withStory={withStory}
|
withStory={withStory}
|
||||||
storyViewerOrigin={storyViewerOrigin}
|
storyViewerOrigin={storyViewerOrigin}
|
||||||
storyViewerMode="single-peer"
|
storyViewerMode="single-peer"
|
||||||
onClick={withMediaViewer ? handleAvatarViewerOpen : undefined}
|
onClick={hasAvatarMediaViewer ? handleAvatarViewerOpen : undefined}
|
||||||
/>
|
/>
|
||||||
<div className="info">
|
<div className="info">
|
||||||
{renderNameTitle()}
|
{renderNameTitle()}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user