Fixed repeating changelog notifications

This commit is contained in:
Igor Zhukov 2017-07-31 19:01:05 +03:00
parent 9ce6996f39
commit 54dfe8fd60

View File

@ -4342,7 +4342,14 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils'])
})
.service('ChangelogNotifyService', function (Storage, $rootScope, $modal, $timeout, MtpApiManager, ApiUpdatesManager) {
var checked = false
function checkUpdate () {
if (checked) {
return
}
checked = true
MtpApiManager.getUserID().then(function (userID) {
if (!userID) {
return