Skip to content
This repository was archived by the owner on Oct 25, 2023. It is now read-only.

Commit fdf983d

Browse files
committed
Fixed force unsubscribe on logout
1 parent 0a9a0c4 commit fdf983d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/js/controllers.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ angular.module('myApp.controllers', ['myApp.i18n'])
3131
LayoutSwitchService.start()
3232
})
3333

34-
.controller('AppLoginController', function ($scope, $rootScope, $location, $timeout, $modal, $modalStack, MtpApiManager, ErrorService, NotificationsManager, PasswordManager, ChangelogNotifyService, IdleManager, LayoutSwitchService, TelegramMeWebService, _) {
34+
.controller('AppLoginController', function ($scope, $rootScope, $location, $timeout, $modal, $modalStack, MtpApiManager, ErrorService, NotificationsManager, PasswordManager, ChangelogNotifyService, IdleManager, LayoutSwitchService, WebPushApiManager, TelegramMeWebService, _) {
3535
$modalStack.dismissAll()
3636
IdleManager.start()
3737

@@ -47,6 +47,7 @@ angular.module('myApp.controllers', ['myApp.i18n'])
4747
return
4848
}
4949
TelegramMeWebService.setAuthorized(false)
50+
WebPushApiManager.forceUnsubscribe()
5051
})
5152

5253
var options = {dcID: 2, createNetworker: true}

0 commit comments

Comments
 (0)