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:
@@ -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
|
||||
|
Reference in New Issue
Block a user