mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-15 21:57:10 +02:00
feat: hide proxy sponsor
This commit is contained in:
parent
80cadf8f7d
commit
5234c8af1a
1 changed files with 6 additions and 0 deletions
|
@ -291,6 +291,12 @@ void ApiWrap::topPromotionDone(const MTPhelp_PromoData &proxy) {
|
|||
base::unixtime::now(),
|
||||
_topPromotionNextRequestTime);
|
||||
|
||||
const auto settings = &AyuSettings::getInstance();
|
||||
if (settings->disableAds) {
|
||||
_session->data().setTopPromoted(nullptr, QString(), QString());
|
||||
return;
|
||||
}
|
||||
|
||||
proxy.match([&](const MTPDhelp_promoDataEmpty &data) {
|
||||
_session->data().setTopPromoted(nullptr, QString(), QString());
|
||||
}, [&](const MTPDhelp_promoData &data) {
|
||||
|
|
Loading…
Add table
Reference in a new issue