diff --git a/app/js/lib/ng_utils.js b/app/js/lib/ng_utils.js index 23aff7c2..66379954 100755 --- a/app/js/lib/ng_utils.js +++ b/app/js/lib/ng_utils.js @@ -1029,6 +1029,9 @@ angular.module('izhukov.utils', []) hidden = 'webkitHidden' visibilityChange = 'webkitvisibilitychange' } + if (!Config.Mobile) { + visibilityChange = '' + } return { start: start diff --git a/app/js/lib/schema.tl b/app/js/lib/schema.tl index 99f0a2ae..d8a48575 100644 --- a/app/js/lib/schema.tl +++ b/app/js/lib/schema.tl @@ -833,7 +833,7 @@ auth.resendCode#3ef1a9bf phone_number:string phone_code_hash:string = auth.SentC auth.cancelCode#1f040578 phone_number:string phone_code_hash:string = Bool; auth.dropTempAuthKeys#8e48a188 except_auth_keys:Vector = Bool; -account.registerDevice#f75874d1 token_type:int token:string other_uids:Vector = Bool; +account.registerDevice#01280460 token_type:int token:string app_sandbox:Bool other_uids:Vector = Bool; account.unregisterDevice#3076c4bf token_type:int token:string other_uids:Vector = Bool; account.updateNotifySettings#84be5b93 peer:InputNotifyPeer settings:InputPeerNotifySettings = Bool; account.getNotifySettings#12b3ad31 peer:InputNotifyPeer = PeerNotifySettings; diff --git a/app/js/services.js b/app/js/services.js index e4a58fac..f253f63e 100755 --- a/app/js/services.js +++ b/app/js/services.js @@ -3398,6 +3398,8 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils']) $rootScope.$broadcast('stateSynchronized') updatesState.syncLoading = false } + }, function () { + updatesState.syncLoading = false }) } @@ -4083,6 +4085,14 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils']) if ('Notification' in window) { try { + if (data.tag) { + angular.forEach(notificationsShown, function (notification) { + if (notification && + notification.tag == data.tag) { + notification.hidden = true + } + }) + } notification = new Notification(data.title, { icon: data.image || '', body: data.message || '', @@ -4160,6 +4170,7 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils']) } try { if (notification.close) { + notification.hidden = true notification.close() } else if (notificationsMsSiteMode &&