diff --git a/src/components/middle/message/Message.tsx b/src/components/middle/message/Message.tsx index d4830fde..4b31a4aa 100644 --- a/src/components/middle/message/Message.tsx +++ b/src/components/middle/message/Message.tsx @@ -294,11 +294,9 @@ const Message: FC = ({ !(isContextMenuShown || isInSelectMode || isForwarding) && (!isInDocumentGroup || isLastInDocumentGroup) ); - const canForward = canShowActionButton && isChannel && !isScheduled; - const canFocus = Boolean(canShowActionButton && ( - (forwardInfo && (forwardInfo.isChannelPost || (isChatWithSelf && !isOwn)) && forwardInfo.fromMessageId) - || isPinnedList - )); + const canForward = isChannel && !isScheduled; + const canFocus = Boolean(isPinnedList + || (forwardInfo && (forwardInfo.isChannelPost || (isChatWithSelf && !isOwn)) && forwardInfo.fromMessageId)); const avatarPeer = forwardInfo && (isChatWithSelf || !sender) ? originSender : sender; const senderPeer = forwardInfo ? originSender : sender; @@ -841,7 +839,7 @@ const Message: FC = ({ onClick={handleMessageSelect} /> )} - {canForward ? ( + {canShowActionButton && canForward ? ( - ) : canFocus ? ( + ) : canShowActionButton && canFocus ? (