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() {
const auto updaterVersion = Platform::AutoUpdateVersion();
const auto path = Local::readAutoupdatePrefix()
+ qstr("/current")
+ (updaterVersion > 1 ? QString::number(updaterVersion) : QString());
+ qstr("/current");
auto url = QUrl(path);
DEBUG_LOG(("Update Info: requesting update state"));
const auto request = QNetworkRequest(url);
@ -887,9 +885,7 @@ void MtpChecker::start() {
crl::on_main(this, [=] { fail(); });
return;
}
const auto updaterVersion = Platform::AutoUpdateVersion();
const auto feed = "ktghbcfeed"
+ (updaterVersion > 1 ? QString::number(updaterVersion) : QString());
const auto feed = "ktghbcfeed";
MTP::ResolveChannel(&_mtp, feed, [=](const MTPInputChannel &channel) {
_mtp.send(
MTPmessages_GetHistory(