mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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(),
|
base::unixtime::now(),
|
||||||
_topPromotionNextRequestTime);
|
_topPromotionNextRequestTime);
|
||||||
|
|
||||||
|
const auto settings = &AyuSettings::getInstance();
|
||||||
|
if (settings->disableAds) {
|
||||||
|
_session->data().setTopPromoted(nullptr, QString(), QString());
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
proxy.match([&](const MTPDhelp_promoDataEmpty &data) {
|
proxy.match([&](const MTPDhelp_promoDataEmpty &data) {
|
||||||
_session->data().setTopPromoted(nullptr, QString(), QString());
|
_session->data().setTopPromoted(nullptr, QString(), QString());
|
||||||
}, [&](const MTPDhelp_promoData &data) {
|
}, [&](const MTPDhelp_promoData &data) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue