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() {
|
||||
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(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue