push notifications service addapted to bws

This commit is contained in:
Gabriel Bazán 2016-01-15 11:59:29 -03:00
commit 425d8ffb33
4 changed files with 44 additions and 37 deletions

View file

@ -304,6 +304,8 @@ angular.module('copayApp.services')
root.deleteWalletFC = function(opts, cb) {
var fc = root.focusedClient;
var walletId = fc.credentials.walletId;
$rootScope.$emit('Local/UnsubscribeNotifications');
$log.debug('Deleting Wallet:', fc.credentials.walletName);
fc.removeAllListeners();
@ -326,8 +328,6 @@ angular.module('copayApp.services')
if (err) $log.warn(err);
});
$rootScope.$emit('Local/UnsubscribeNotifications', walletId);
$timeout(function() {
root.setWalletClients();
root.setAndStoreFocus(null, function() {