2
0
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:
John Preston
2018-05-24 16:40:19 +03:00
parent 5e7642b42a
commit 37bf9ffcff
6 changed files with 34 additions and 0 deletions

View File

@@ -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();
}