Message: Hide forward button for protected content (#1804)
This commit is contained in:
parent
8cca43a4f8
commit
22088e260a
@ -346,7 +346,7 @@ const Message: FC<OwnProps & StateProps> = ({
|
|||||||
!(isContextMenuShown || isInSelectMode || isForwarding)
|
!(isContextMenuShown || isInSelectMode || isForwarding)
|
||||||
&& !isInDocumentGroupNotLast
|
&& !isInDocumentGroupNotLast
|
||||||
);
|
);
|
||||||
const canForward = isChannel && !isScheduled;
|
const canForward = isChannel && !isScheduled && !isProtected;
|
||||||
const canFocus = Boolean(isPinnedList
|
const canFocus = Boolean(isPinnedList
|
||||||
|| (forwardInfo
|
|| (forwardInfo
|
||||||
&& (forwardInfo.isChannelPost || (isChatWithSelf && !isOwn) || isRepliesChat)
|
&& (forwardInfo.isChannelPost || (isChatWithSelf && !isOwn) || isRepliesChat)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user