Browse Source

Fixed force unsubscribe on logout

master
Igor Zhukov 7 years ago
parent
commit
fdf983dec7
  1. 3
      app/js/controllers.js

3
app/js/controllers.js

@ -31,7 +31,7 @@ angular.module('myApp.controllers', ['myApp.i18n'])
LayoutSwitchService.start() LayoutSwitchService.start()
}) })
.controller('AppLoginController', function ($scope, $rootScope, $location, $timeout, $modal, $modalStack, MtpApiManager, ErrorService, NotificationsManager, PasswordManager, ChangelogNotifyService, IdleManager, LayoutSwitchService, TelegramMeWebService, _) { .controller('AppLoginController', function ($scope, $rootScope, $location, $timeout, $modal, $modalStack, MtpApiManager, ErrorService, NotificationsManager, PasswordManager, ChangelogNotifyService, IdleManager, LayoutSwitchService, WebPushApiManager, TelegramMeWebService, _) {
$modalStack.dismissAll() $modalStack.dismissAll()
IdleManager.start() IdleManager.start()
@ -47,6 +47,7 @@ angular.module('myApp.controllers', ['myApp.i18n'])
return return
} }
TelegramMeWebService.setAuthorized(false) TelegramMeWebService.setAuthorized(false)
WebPushApiManager.forceUnsubscribe()
}) })
var options = {dcID: 2, createNetworker: true} var options = {dcID: 2, createNetworker: true}

Loading…
Cancel
Save