mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Add phone number privacy.
Also move calls peer-to-peer privacy inside calls privacy.
This commit is contained in:
@@ -100,7 +100,7 @@ std::unique_ptr<PrivacyExceptionsBoxController::Row> PrivacyExceptionsBoxControl
|
||||
|
||||
} // namespace
|
||||
|
||||
LangKey EditPrivacyBox::Controller::optionLabelKey(Option option) {
|
||||
LangKey EditPrivacyController::optionLabelKey(Option option) {
|
||||
switch (option) {
|
||||
case Option::Everyone: return lng_edit_privacy_everyone;
|
||||
case Option::Contacts: return lng_edit_privacy_contacts;
|
||||
@@ -111,7 +111,7 @@ LangKey EditPrivacyBox::Controller::optionLabelKey(Option option) {
|
||||
|
||||
EditPrivacyBox::EditPrivacyBox(
|
||||
QWidget*,
|
||||
std::unique_ptr<Controller> controller,
|
||||
std::unique_ptr<EditPrivacyController> controller,
|
||||
const Value &value)
|
||||
: _controller(std::move(controller))
|
||||
, _value(value) {
|
||||
@@ -350,6 +350,10 @@ void EditPrivacyBox::setupContent() {
|
||||
addLabel(content, _controller->exceptionsDescription());
|
||||
AddSkip(content);
|
||||
|
||||
if (auto below = _controller->setupBelowWidget(content)) {
|
||||
content->add(std::move(below));
|
||||
}
|
||||
|
||||
addButton(langFactory(lng_settings_save), [=] {
|
||||
const auto someAreDisallowed = (_value.option != Option::Everyone)
|
||||
|| !_value.never.empty();
|
||||
|
Reference in New Issue
Block a user