mirror of https://github.com/BTCPrivate/copay.git
Merge pull request #5386 from antonio-fr/master
Fix wallet deletion without push
This commit is contained in:
commit
611654e25e
|
@ -480,6 +480,8 @@ angular.module('copayApp.services')
|
|||
root.deleteWalletClient = function(client, cb) {
|
||||
var walletId = client.credentials.walletId;
|
||||
|
||||
var config = configService.getSync();
|
||||
if (config.pushNotifications.enabled)
|
||||
pushNotificationsService.unsubscribe(root.getWallet(walletId), function(err) {
|
||||
if (err) $log.warn('Unsubscription error: ' + err.message);
|
||||
else $log.debug('Unsubscribed from push notifications service');
|
||||
|
|
Loading…
Reference in New Issue