mirror of
https://github.com/danog/telegram-tt.git
synced 2024-11-27 04:45:08 +01:00
Management: Some fixes for groups (#1717)
This commit is contained in:
parent
c4e4846c3d
commit
34ab245f49
@ -170,7 +170,7 @@ const ManageChatPrivacyType: FC<OwnProps & StateProps> = ({
|
||||
</h3>
|
||||
<RadioGroup
|
||||
selected={isProtected ? 'protected' : 'allowed'}
|
||||
name="channel-type"
|
||||
name="forwarding-type"
|
||||
options={forwardingOptions}
|
||||
onChange={handleForwardingOptionChange}
|
||||
/>
|
||||
|
@ -93,6 +93,7 @@ const ManageGroup: FC<OwnProps & StateProps> = ({
|
||||
const [error, setError] = useState<string | undefined>();
|
||||
const imageHash = getChatAvatarHash(chat);
|
||||
const currentAvatarBlobUrl = useMedia(imageHash, false, ApiMediaFormat.BlobUrl);
|
||||
const isPublicGroup = chat.username || hasLinkedChannel;
|
||||
const lang = useLang();
|
||||
|
||||
useHistoryBack(isActive, onClose);
|
||||
@ -343,7 +344,7 @@ const ManageGroup: FC<OwnProps & StateProps> = ({
|
||||
<span className="subtitle">{formatInteger(chat.membersCount ?? 0)}</span>
|
||||
</ListItem>
|
||||
|
||||
{chat.fullInfo && (
|
||||
{!isPublicGroup && chat.fullInfo && (
|
||||
<div className="ListItem narrow no-selection">
|
||||
<Checkbox
|
||||
checked={!chat.fullInfo.isPreHistoryHidden}
|
||||
|
Loading…
Reference in New Issue
Block a user