Browse Source

Fixed broken update sync

master
Igor Zhukov 7 years ago
parent
commit
617b138deb
  1. 4
      app/js/services.js

4
app/js/services.js

@ -3329,7 +3329,9 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils'])
updatesState.syncPending = false 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') { if (differenceResult._ == 'updates.differenceEmpty') {
console.log(dT(), 'apply empty diff', differenceResult.seq) console.log(dT(), 'apply empty diff', differenceResult.seq)
updatesState.date = differenceResult.date updatesState.date = differenceResult.date

Loading…
Cancel
Save