Skip 'Nobody' option in group chats privacy

This commit is contained in:
Eduard Kuzmenko 2021-06-23 02:31:49 +03:00
parent a232b1c4c0
commit 27c8adfb56
2 changed files with 5 additions and 4 deletions

View File

@ -7,6 +7,7 @@
import { SliderSuperTabEventable } from "../../../sliderTab"; import { SliderSuperTabEventable } from "../../../sliderTab";
import PrivacySection from "../../../privacySection"; import PrivacySection from "../../../privacySection";
import { LangPackKey } from "../../../../lib/langPack"; import { LangPackKey } from "../../../../lib/langPack";
import { PrivacyType } from "../../../../lib/appManagers/appPrivacyManager";
export default class AppPrivacyAddToGroupsTab extends SliderSuperTabEventable { export default class AppPrivacyAddToGroupsTab extends SliderSuperTabEventable {
protected init() { protected init() {
@ -20,7 +21,8 @@ export default class AppPrivacyAddToGroupsTab extends SliderSuperTabEventable {
inputKey: 'inputPrivacyKeyChatInvite', inputKey: 'inputPrivacyKeyChatInvite',
captions: [caption, caption, caption], captions: [caption, caption, caption],
exceptionTexts: ['PrivacySettingsController.NeverAllow', 'PrivacySettingsController.AlwaysAllow'], exceptionTexts: ['PrivacySettingsController.NeverAllow', 'PrivacySettingsController.AlwaysAllow'],
appendTo: this.scrollable appendTo: this.scrollable,
skipTypes: [PrivacyType.Nobody]
}); });
} }
} }

View File

@ -1002,12 +1002,11 @@
.privacy-container { .privacy-container {
.sidebar-left-section.no-delimiter { .sidebar-left-section.no-delimiter {
padding-bottom: 0;
padding-top: .75rem; padding-top: .75rem;
} }
.sidebar-left-section:last-child { .sidebar-left-section {
padding-top: .4375rem; padding: 0 0 .5rem;
} }
/* .privacy-navigation-container { /* .privacy-navigation-container {