2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-30 22:16:14 +00:00

Add gifts-to-profile privacy.

This commit is contained in:
John Preston
2024-11-15 15:34:23 +04:00
parent 3cfbd6a93b
commit 572c074c42
9 changed files with 346 additions and 107 deletions

View File

@@ -194,7 +194,7 @@ public:
};
class ForwardsPrivacyController
class ForwardsPrivacyController final
: public EditPrivacyController
, private HistoryView::SimpleElementDelegate {
public:
@@ -340,4 +340,22 @@ public:
};
class GiftsAutoSavePrivacyController final : public EditPrivacyController {
public:
using Option = EditPrivacyBox::Option;
using Exception = EditPrivacyBox::Exception;
Key key() const override;
rpl::producer<QString> title() const override;
rpl::producer<QString> optionsTitleKey() const override;
rpl::producer<QString> exceptionButtonTextKey(
Exception exception) const override;
rpl::producer<QString> exceptionBoxTitle(
Exception exception) const override;
rpl::producer<QString> exceptionsDescription() const override;
bool allowMiniAppsToggle(Exception exception) const override;
};
} // namespace Settings