From d9f295a607a8724e8741fd468ebca40d41e9887f Mon Sep 17 00:00:00 2001 From: Igor Zhukov Date: Thu, 1 Jan 2015 08:12:52 +0100 Subject: [PATCH] Fixed tgme sync --- app/js/services.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/js/services.js b/app/js/services.js index 0a75bd1a..5a902cef 100644 --- a/app/js/services.js +++ b/app/js/services.js @@ -4139,7 +4139,8 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils']) } Storage.get('tgme_sync').then(function (curValue) { var ts = tsNow(true); - if (curValue && + if (canRedirect && + curValue && curValue.canRedirect == canRedirect && curValue.ts + 86400 > ts) { return false;