Fixed get changelog

This commit is contained in:
Igor Zhukov 2017-06-30 23:10:39 +03:00
parent cddccdfba3
commit 1c9e6fe42a

View File

@ -4350,6 +4350,9 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils'])
$timeout(function () {
Storage.get('last_version').then(function (lastVersion) {
if (lastVersion != Config.App.version) {
if (!lastVersion) {
Storage.set({last_version: Config.App.version})
} else {
MtpApiManager.invokeApi('help.getAppChangelog', {
prev_app_version: lastVersion
}, {
@ -4362,6 +4365,7 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils'])
Storage.set({last_version: Config.App.version})
})
}
}
})
}, 5000)
})