Composer: Hide when not joined (#1660)

This commit is contained in:
Alexander Zinchuk 2022-01-25 03:24:23 +01:00
parent 92f15c200b
commit b3d0fb2d77

View File

@ -346,7 +346,10 @@ const MiddleColumn: FC<StateProps> = ({
useHistoryBack(isMobileSearchActive, closeLocalTextSearch); useHistoryBack(isMobileSearchActive, closeLocalTextSearch);
useHistoryBack(isSelectModeActive, exitMessageSelectMode); useHistoryBack(isSelectModeActive, exitMessageSelectMode);
const isMessagingDisabled = Boolean(!isPinnedMessageList && !renderingCanPost && messageSendingRestrictionReason); const isMessagingDisabled = Boolean(
!isPinnedMessageList && !renderingCanPost && !renderingCanRestartBot && !renderingCanStartBot
&& !renderingCanSubscribe && messageSendingRestrictionReason,
);
const withMessageListBottomShift = Boolean( const withMessageListBottomShift = Boolean(
renderingCanRestartBot || renderingCanSubscribe || renderingCanStartBot || isPinnedMessageList, renderingCanRestartBot || renderingCanSubscribe || renderingCanStartBot || isPinnedMessageList,
); );