delete token arg in unsusbscribe methods
This commit is contained in:
parent
070669d835
commit
1a8cd4e59e
2 changed files with 10 additions and 14 deletions
|
|
@ -1289,12 +1289,10 @@ angular.module('copayApp.controllers').controller('indexController', function($r
|
|||
});
|
||||
|
||||
$rootScope.$on('Local/UnsubscribeNotifications', function(event, walletId, cb) {
|
||||
storageService.getDeviceToken(function(err, token) {
|
||||
pushNotificationsService.unsubscribe(token, walletId, function(err, response) {
|
||||
if (err) $log.warn('Error: ' + err.code);
|
||||
$log.debug('Unsubscribed: ' + response);
|
||||
return cb();
|
||||
});
|
||||
pushNotificationsService.unsubscribe(walletId, function(err, response) {
|
||||
if (err) $log.warn('Error: ' + err.code);
|
||||
$log.debug('Unsubscribed: ' + response);
|
||||
return cb();
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue