mirror of
https://github.com/danog/telegram-tt.git
synced 2025-01-22 13:21:37 +01:00
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)
|
||||
&& !isInDocumentGroupNotLast
|
||||
);
|
||||
const canForward = isChannel && !isScheduled;
|
||||
const canForward = isChannel && !isScheduled && !isProtected;
|
||||
const canFocus = Boolean(isPinnedList
|
||||
|| (forwardInfo
|
||||
&& (forwardInfo.isChannelPost || (isChatWithSelf && !isOwn) || isRepliesChat)
|
||||
|
Loading…
x
Reference in New Issue
Block a user