Fixed get changelog
This commit is contained in:
parent
cddccdfba3
commit
1c9e6fe42a
@ -4350,6 +4350,9 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils'])
|
|||||||
$timeout(function () {
|
$timeout(function () {
|
||||||
Storage.get('last_version').then(function (lastVersion) {
|
Storage.get('last_version').then(function (lastVersion) {
|
||||||
if (lastVersion != Config.App.version) {
|
if (lastVersion != Config.App.version) {
|
||||||
|
if (!lastVersion) {
|
||||||
|
Storage.set({last_version: Config.App.version})
|
||||||
|
} else {
|
||||||
MtpApiManager.invokeApi('help.getAppChangelog', {
|
MtpApiManager.invokeApi('help.getAppChangelog', {
|
||||||
prev_app_version: lastVersion
|
prev_app_version: lastVersion
|
||||||
}, {
|
}, {
|
||||||
@ -4362,6 +4365,7 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils'])
|
|||||||
Storage.set({last_version: Config.App.version})
|
Storage.set({last_version: Config.App.version})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}, 5000)
|
}, 5000)
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user