Fixed broken update sync

This commit is contained in:
Igor Zhukov 2018-01-01 14:56:32 +04:00
parent 9eabf910d9
commit 617b138deb

View File

@ -3329,7 +3329,9 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils'])
updatesState.syncPending = false
}
MtpApiManager.invokeApi('updates.getDifference', {pts: updatesState.pts, date: updatesState.date, qts: -1}).then(function (differenceResult) {
MtpApiManager.invokeApi('updates.getDifference', {pts: updatesState.pts, date: updatesState.date, qts: -1}, {
timeout: 0x7fffffff
}).then(function (differenceResult) {
if (differenceResult._ == 'updates.differenceEmpty') {
console.log(dT(), 'apply empty diff', differenceResult.seq)
updatesState.date = differenceResult.date