Fixed repeating changelog notifications
This commit is contained in:
parent
9ce6996f39
commit
54dfe8fd60
@ -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…
x
Reference in New Issue
Block a user