mirror of
https://github.com/danog/telegram-tt.git
synced 2025-01-22 05:11:55 +01:00
Composer: Hide when not joined (#1660)
This commit is contained in:
parent
92f15c200b
commit
b3d0fb2d77
@ -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,
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user