1
0
mirror of https://github.com/NekoX-Dev/NekoX.git synced 2024-11-16 10:56:24 +01:00

Fix hide proxy sponsor

This commit is contained in:
NekoInverter 2020-05-01 18:59:36 +08:00
parent a8643fdc30
commit eda70131da
No known key found for this signature in database
GPG Key ID: 280D6CCCF95715F9

View File

@ -4404,7 +4404,7 @@ public class MessagesController extends BaseController implements NotificationCe
String proxyAddress = preferences.getString("proxy_ip", "");
String proxySecret = preferences.getString("proxy_secret", "");
int removeCurrent = 0;
if (!NekoConfig.hideProxySponsorChannel && promoDialogId != 0 && promoDialogType == PROMO_TYPE_PROXY && proxyDialogAddress != null && !proxyDialogAddress.equals(proxyAddress + proxySecret)) {
if (promoDialogId != 0 && promoDialogType == PROMO_TYPE_PROXY && proxyDialogAddress != null && !proxyDialogAddress.equals(proxyAddress + proxySecret)) {
removeCurrent = 1;
}
lastCheckPromoId++;
@ -4453,6 +4453,9 @@ public class MessagesController extends BaseController implements NotificationCe
promoDialogId = did;
if (res.proxy) {
promoDialogType = PROMO_TYPE_PROXY;
if (NekoConfig.hideProxySponsorChannel) {
noDialog = true;
}
} else if (!TextUtils.isEmpty(res.psa_type)) {
promoDialogType = PROMO_TYPE_PSA;
promoPsaType = res.psa_type;