Fix build with disabled autoupdate.

This commit is contained in:
John Preston 2018-06-01 01:01:11 +03:00
parent 8edf4c8711
commit 53b3b24867
1 changed files with 2 additions and 0 deletions

View File

@ -466,7 +466,9 @@ void Messenger::startMtp() {
_langCloudManager = std::make_unique<Lang::CloudManager>(
langpack(),
mtp());
#ifndef TDESKTOP_DISABLE_AUTOUPDATE
Core::UpdateChecker().setMtproto(mtp());
#endif // TDESKTOP_DISABLE_AUTOUPDATE
}
void Messenger::destroyMtpKeys(MTP::AuthKeysList &&keys) {