Revert alert

This commit is contained in:
世界 2021-04-11 00:43:37 +08:00
parent 09aa41e6d3
commit 10decf6b77
No known key found for this signature in database
GPG Key ID: CD109927C34A63C4
2 changed files with 6 additions and 4 deletions

View File

@ -763,6 +763,8 @@ public class ConnectionsManager extends BaseController {
return lastClassGuid++;
}
public boolean alertShowed;
public void setIsUpdating(final boolean value) {
AndroidUtilities.runOnUIThread(() -> {
if (isUpdating == value) {
@ -771,11 +773,12 @@ public class ConnectionsManager extends BaseController {
isUpdating = value;
if (connectionState == ConnectionStateConnected) {
AccountInstance.getInstance(currentAccount).getNotificationCenter().postNotificationName(NotificationCenter.didUpdateConnectionState);
} else if (connectionState == ConnectionStateConnectingToProxy) {
if (native_getCurrentDatacenterId(currentAccount) == 4 && SharedConfig.currentProxy != null && SharedConfig.currentProxy instanceof SharedConfig.WsProxy) {
} /*else if (connectionState == ConnectionStateConnectingToProxy && !alertShowed) {
if (getCurrentDatacenterId() == 4 && SharedConfig.currentProxy instanceof SharedConfig.WsProxy) {
alertShowed = true;
AccountInstance.getInstance(currentAccount).getNotificationCenter().postNotificationName(NotificationCenter.needShowAlert, 3, Unit.INSTANCE);
}
}
}*/
});
}

View File

@ -231,5 +231,4 @@
<string name="AddProxyWs">Add WebSocket Relay</string>
<string name="ProxyInfoWS">WebSocket Relay Settings</string>
<string name="WsPayload">Payload</string>
<string name="WsNoDC4">Due to official reasons, WebSocket Relay does not support DC4.</string>
</resources>