Telegram Web K with changes to work inside I2P https://web.telegram.i2p/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

29 lines
1.1 KiB

/*
* https://github.com/morethanwords/tweb
* Copyright (C) 2019-2021 Eduard Kuzmenko
* https://github.com/morethanwords/tweb/blob/master/LICENSE
*/
import { SliderSuperTabEventable } from "../../../sliderTab";
import PrivacySection from "../../../privacySection";
import { LangPackKey } from "../../../../lib/langPack";
import { PrivacyType } from "../../../../lib/appManagers/appPrivacyManager";
export default class AppPrivacyAddToGroupsTab extends SliderSuperTabEventable {
protected init() {
this.header.classList.add('with-border');
this.container.classList.add('privacy-tab', 'privacy-add-to-groups');
this.setTitle('PrivacySettings.Groups');
const caption: LangPackKey = 'PrivacySettingsController.GroupDescription';
new PrivacySection({
tab: this,
title: 'WhoCanAddMe',
inputKey: 'inputPrivacyKeyChatInvite',
captions: [caption, caption, caption],
exceptionTexts: ['PrivacySettingsController.NeverAllow', 'PrivacySettingsController.AlwaysAllow'],
appendTo: this.scrollable,
skipTypes: [PrivacyType.Nobody]
});
}
}