From a12d8afb76d9b1226ee9baa51fc67689d7e1a96f Mon Sep 17 00:00:00 2001 From: Alexander Zinchuk Date: Wed, 21 Jul 2021 17:44:54 +0300 Subject: [PATCH] Follow-up --- src/components/middle/message/Message.tsx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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) {