mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Show bad proxy configuration error.
This commit is contained in:
@@ -54,6 +54,7 @@ public:
|
||||
void requestConfigIfOld();
|
||||
void requestCDNConfig();
|
||||
void setUserPhone(const QString &phone);
|
||||
void badConfigurationError();
|
||||
|
||||
void restart();
|
||||
void restart(ShiftedDcId shiftedDcId);
|
||||
@@ -398,6 +399,12 @@ void Instance::Private::setUserPhone(const QString &phone) {
|
||||
}
|
||||
}
|
||||
|
||||
void Instance::Private::badConfigurationError() {
|
||||
if (_mode == Mode::Normal) {
|
||||
Messenger::Instance().badMtprotoConfigurationError();
|
||||
}
|
||||
}
|
||||
|
||||
void Instance::Private::requestConfigIfOld() {
|
||||
const auto timeout = Global::BlockedMode()
|
||||
? kConfigBecomesOldForBlockedIn
|
||||
@@ -1484,6 +1491,10 @@ void Instance::setUserPhone(const QString &phone) {
|
||||
_private->setUserPhone(phone);
|
||||
}
|
||||
|
||||
void Instance::badConfigurationError() {
|
||||
_private->badConfigurationError();
|
||||
}
|
||||
|
||||
void Instance::requestConfigIfOld() {
|
||||
_private->requestConfigIfOld();
|
||||
}
|
||||
|
Reference in New Issue
Block a user