Group Chat Settings: Add description for history checkbox (#5272)

This commit is contained in:
Alexander Zinchuk 2024-12-06 19:43:51 +04:00
parent afe9582b3a
commit 7fd8062f1a

View File

@ -445,6 +445,9 @@ const ManageGroup: FC<OwnProps & StateProps> = ({
checked={!chatFullInfo.isPreHistoryHidden}
label={lang('ChatHistory')}
onChange={handleTogglePreHistory}
subLabel={
chatFullInfo.isPreHistoryHidden ? lang('ChatHistoryHiddenInfo2') : lang('ChatHistoryVisibleInfo')
}
disabled={!canBanUsers}
/>
</div>