Browse Source

Fixed repeating changelog notifications

master
Igor Zhukov 7 years ago
parent
commit
54dfe8fd60
  1. 7
      app/js/services.js

7
app/js/services.js

@ -4342,7 +4342,14 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils']) @@ -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

Loading…
Cancel
Save