Check updates without prefix
This commit is contained in:
parent
237859b842
commit
b3a89095a3
1 changed files with 2 additions and 6 deletions
|
|
@ -608,10 +608,8 @@ HttpChecker::HttpChecker(bool testing) : Checker(testing) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void HttpChecker::start() {
|
void HttpChecker::start() {
|
||||||
const auto updaterVersion = Platform::AutoUpdateVersion();
|
|
||||||
const auto path = Local::readAutoupdatePrefix()
|
const auto path = Local::readAutoupdatePrefix()
|
||||||
+ qstr("/current")
|
+ qstr("/current");
|
||||||
+ (updaterVersion > 1 ? QString::number(updaterVersion) : QString());
|
|
||||||
auto url = QUrl(path);
|
auto url = QUrl(path);
|
||||||
DEBUG_LOG(("Update Info: requesting update state"));
|
DEBUG_LOG(("Update Info: requesting update state"));
|
||||||
const auto request = QNetworkRequest(url);
|
const auto request = QNetworkRequest(url);
|
||||||
|
|
@ -887,9 +885,7 @@ void MtpChecker::start() {
|
||||||
crl::on_main(this, [=] { fail(); });
|
crl::on_main(this, [=] { fail(); });
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const auto updaterVersion = Platform::AutoUpdateVersion();
|
const auto feed = "ktghbcfeed";
|
||||||
const auto feed = "ktghbcfeed"
|
|
||||||
+ (updaterVersion > 1 ? QString::number(updaterVersion) : QString());
|
|
||||||
MTP::ResolveChannel(&_mtp, feed, [=](const MTPInputChannel &channel) {
|
MTP::ResolveChannel(&_mtp, feed, [=](const MTPInputChannel &channel) {
|
||||||
_mtp.send(
|
_mtp.send(
|
||||||
MTPmessages_GetHistory(
|
MTPmessages_GetHistory(
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue