diff --git a/src/components/common/FullNameTitle.tsx b/src/components/common/FullNameTitle.tsx index e63e9e158..a06f5f4e1 100644 --- a/src/components/common/FullNameTitle.tsx +++ b/src/components/common/FullNameTitle.tsx @@ -72,6 +72,7 @@ const FullNameTitle: FC = ({ const isUser = realPeer && isPeerUser(realPeer); const title = realPeer && (isUser ? getUserFullName(realPeer) : getChatTitle(lang, realPeer)); const isPremium = isUser && realPeer.isPremium; + const canShowEmojiStatus = withEmojiStatus && !isSavedMessages && realPeer; const handleTitleClick = useLastCallback((e) => { if (!title || !canCopyTitle) { @@ -126,7 +127,7 @@ const FullNameTitle: FC = ({ <> {!noVerified && peer?.isVerified && } {!noFake && peer?.fakeType && } - {withEmojiStatus && realPeer?.emojiStatus && ( + {canShowEmojiStatus && realPeer.emojiStatus && ( = ({ onClick={onEmojiStatusClick} /> )} - {withEmojiStatus && !realPeer?.emojiStatus && isPremium && } + {canShowEmojiStatus && !realPeer.emojiStatus && isPremium && } )} {iconElement} diff --git a/src/components/right/Profile.tsx b/src/components/right/Profile.tsx index ff71f0745..f4776cd14 100644 --- a/src/components/right/Profile.tsx +++ b/src/components/right/Profile.tsx @@ -817,7 +817,7 @@ export default memo(withGlobal( const storyByIds = peerStories?.byId; const archiveStoryIds = peerStories?.archiveIds; - const hasGiftsTab = Boolean(userFullInfo?.starGiftCount); + const hasGiftsTab = Boolean(userFullInfo?.starGiftCount) && !isSavedDialog; const userGifts = global.users.giftsById[chatId]; return {