unsubscribe when wallet is deleted
This commit is contained in:
parent
171665afe6
commit
2d64e61654
3 changed files with 19 additions and 7 deletions
|
|
@ -1273,10 +1273,14 @@ angular.module('copayApp.controllers').controller('indexController', function($r
|
|||
go.walletHome();
|
||||
});
|
||||
|
||||
$rootScope.$on('Local/EnableNotifications', function(event) {
|
||||
$rootScope.$on('Local/SubscribeNotifications', function(event) {
|
||||
pushNotificationsService.enableNotifications();
|
||||
});
|
||||
|
||||
$rootScope.$on('Local/UnsubscribeNotifications', function(event, walletId) {
|
||||
pushNotificationsService.unsubscribe(walletId);
|
||||
});
|
||||
|
||||
self.debouncedUpdate = lodash.throttle(function() {
|
||||
self.updateAll({
|
||||
quiet: true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue