diff --git a/src/components/middle/HeaderActions.tsx b/src/components/middle/HeaderActions.tsx index 8f1fea7d0..7c9812855 100644 --- a/src/components/middle/HeaderActions.tsx +++ b/src/components/middle/HeaderActions.tsx @@ -32,6 +32,7 @@ interface OwnProps { chatId: string; threadId: number; messageListType: MessageListType; + canExpandActions: boolean; } interface StateProps { @@ -63,6 +64,7 @@ const HeaderActions: FC = ({ canMute, canLeave, isRightColumnShown, + canExpandActions, joinChannel, sendBotCommand, openLocalTextSearch, @@ -120,17 +122,17 @@ const HeaderActions: FC = ({ return (
- {!IS_SINGLE_COLUMN_LAYOUT && canSubscribe && ( + {!IS_SINGLE_COLUMN_LAYOUT && canExpandActions && canSubscribe && ( )} - {!IS_SINGLE_COLUMN_LAYOUT && canStartBot && ( + {!IS_SINGLE_COLUMN_LAYOUT && canExpandActions && canStartBot && ( )} - {!IS_SINGLE_COLUMN_LAYOUT && canRestartBot && ( + {!IS_SINGLE_COLUMN_LAYOUT && canExpandActions && canRestartBot && (