From 617b138debd74ade38cda33237e4b7d9cc7cb7aa Mon Sep 17 00:00:00 2001 From: Igor Zhukov Date: Mon, 1 Jan 2018 14:56:32 +0400 Subject: [PATCH] Fixed broken update sync --- app/js/services.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/js/services.js b/app/js/services.js index d98bb0d2..df33a107 100755 --- a/app/js/services.js +++ b/app/js/services.js @@ -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