Message: Hide forward button for protected content (#1804)

This commit is contained in:
Alexander Zinchuk 2022-04-01 20:43:39 +02:00
parent 8cca43a4f8
commit 22088e260a

View File

@ -346,7 +346,7 @@ const Message: FC<OwnProps & StateProps> = ({
!(isContextMenuShown || isInSelectMode || isForwarding)
&& !isInDocumentGroupNotLast
);
const canForward = isChannel && !isScheduled;
const canForward = isChannel && !isScheduled && !isProtected;
const canFocus = Boolean(isPinnedList
|| (forwardInfo
&& (forwardInfo.isChannelPost || (isChatWithSelf && !isOwn) || isRepliesChat)