diff --git a/src/components/middle/message/Message.tsx b/src/components/middle/message/Message.tsx index 736af58f..461e8f01 100644 --- a/src/components/middle/message/Message.tsx +++ b/src/components/middle/message/Message.tsx @@ -400,9 +400,8 @@ const Message: FC = ({ const handleSenderClick = useCallback(() => { if (!senderPeer) { - if (asForwarded) { - showNotification({ message: lang('HidAccount') }); - } + showNotification({ message: lang('HidAccount') }); + return; } @@ -411,7 +410,7 @@ const Message: FC = ({ } else { openChat({ id: senderPeer.id }); } - }, [senderPeer, asForwarded, showNotification, lang, openUserInfo, openChat]); + }, [senderPeer, showNotification, lang, openUserInfo, openChat]); const handleViaBotClick = useCallback(() => { if (!botSender) {