Settings: Fix info block on new accounts (#5579)

This commit is contained in:
zubiden 2025-02-05 23:51:29 +01:00 committed by Alexander Zinchuk
parent 268f443dcc
commit 8e6da177f9

View File

@ -251,9 +251,6 @@ const ChatExtra: FC<OwnProps & StateProps> = ({
});
const handleOpenApp = useLastCallback(() => {
if (!chat) {
return;
}
const botId = user?.id;
if (!botId) {
return;
@ -276,7 +273,7 @@ const ChatExtra: FC<OwnProps & StateProps> = ({
),
}, { withNodes: true });
if (!chat || chat.isRestricted || (isSelf && !isInSettings)) {
if (chat?.isRestricted || (isSelf && !isInSettings)) {
return undefined;
}