Check updates without prefix

This commit is contained in:
Eric Kotato 2019-10-06 02:47:07 +03:00
parent 237859b842
commit b3a89095a3

View file

@ -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(