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