Merge pull request #3414 from bitpay/revert-3413-fix/remove-tx-history
Revert 95f3adf505
This commit is contained in:
commit
bd08389285
1 changed files with 2 additions and 6 deletions
|
|
@ -311,7 +311,7 @@ angular.module('copayApp.services')
|
||||||
walletId: walletId
|
walletId: walletId
|
||||||
});
|
});
|
||||||
|
|
||||||
delete root.walletClients[walletId];
|
delete root.walletClients[walletId];
|
||||||
root.focusedClient = null;
|
root.focusedClient = null;
|
||||||
|
|
||||||
storageService.clearLastAddress(walletId, function(err) {
|
storageService.clearLastAddress(walletId, function(err) {
|
||||||
|
|
@ -326,10 +326,6 @@ angular.module('copayApp.services')
|
||||||
if (err) $log.warn(err);
|
if (err) $log.warn(err);
|
||||||
});
|
});
|
||||||
|
|
||||||
storageService.removeTxHistory(walletId, function(err) {
|
|
||||||
if (err) $log.warn(err);
|
|
||||||
});
|
|
||||||
|
|
||||||
$timeout(function() {
|
$timeout(function() {
|
||||||
root.setWalletClients();
|
root.setWalletClients();
|
||||||
root.setAndStoreFocus(null, function() {
|
root.setAndStoreFocus(null, function() {
|
||||||
|
|
@ -365,7 +361,7 @@ angular.module('copayApp.services')
|
||||||
root.setWalletClients();
|
root.setWalletClients();
|
||||||
|
|
||||||
root.setAndStoreFocus(walletId, function() {
|
root.setAndStoreFocus(walletId, function() {
|
||||||
storageService.storeProfile(root.profile, function(err) {
|
storageService.storeProfile(root.profile, function(err){
|
||||||
return cb(err, walletId);
|
return cb(err, walletId);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue