Settings: Fix info block on new accounts (#5579)
This commit is contained in:
parent
268f443dcc
commit
8e6da177f9
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user