Follow-up

This commit is contained in:
Alexander Zinchuk 2021-07-21 17:44:54 +03:00
parent 0b228be60d
commit a12d8afb76

View File

@ -400,9 +400,8 @@ const Message: FC<OwnProps & StateProps & DispatchProps> = ({
const handleSenderClick = useCallback(() => { const handleSenderClick = useCallback(() => {
if (!senderPeer) { if (!senderPeer) {
if (asForwarded) { showNotification({ message: lang('HidAccount') });
showNotification({ message: lang('HidAccount') });
}
return; return;
} }
@ -411,7 +410,7 @@ const Message: FC<OwnProps & StateProps & DispatchProps> = ({
} else { } else {
openChat({ id: senderPeer.id }); openChat({ id: senderPeer.id });
} }
}, [senderPeer, asForwarded, showNotification, lang, openUserInfo, openChat]); }, [senderPeer, showNotification, lang, openUserInfo, openChat]);
const handleViaBotClick = useCallback(() => { const handleViaBotClick = useCallback(() => {
if (!botSender) { if (!botSender) {