delete token arg in unsusbscribe methods

This commit is contained in:
Gabriel Bazán 2016-01-18 17:42:31 -03:00
commit 1a8cd4e59e
2 changed files with 10 additions and 14 deletions

View file

@ -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();
});
});