From 9319a260bb6419880c9370c0f2cb43011e1f5d4a Mon Sep 17 00:00:00 2001 From: Alexander Zinchuk Date: Wed, 10 Nov 2021 23:13:22 +0300 Subject: [PATCH] Middle Header: Hide big buttons when playing audio (#1541) --- src/components/middle/HeaderActions.tsx | 11 +++++++---- src/components/middle/HeaderMenuContainer.tsx | 10 ++++++---- src/components/middle/MiddleHeader.tsx | 1 + 3 files changed, 14 insertions(+), 8 deletions(-) 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 && (