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:
parent
a8643fdc30
commit
eda70131da
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user