fix go home problem
This commit is contained in:
parent
f23df02d0b
commit
999c3e7d5d
2 changed files with 12 additions and 9 deletions
|
|
@ -18,7 +18,7 @@ angular.module('copayApp.controllers').controller('disclaimerController',
|
||||||
if (err) {
|
if (err) {
|
||||||
|
|
||||||
if (err == 'EEXISTS') {
|
if (err == 'EEXISTS') {
|
||||||
storageService.getCopayDisclaimerFlag(function(val) {
|
storageService.getCopayDisclaimerFlag(function(err, val) {
|
||||||
if (val) return go.walletHome();
|
if (val) return go.walletHome();
|
||||||
$scope.creatingProfile = false;
|
$scope.creatingProfile = false;
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -1325,14 +1325,17 @@ angular.module('copayApp.controllers').controller('indexController', function($r
|
||||||
$rootScope.$on('Local/NewFocusedWallet', function() {
|
$rootScope.$on('Local/NewFocusedWallet', function() {
|
||||||
self.setFocusedWallet();
|
self.setFocusedWallet();
|
||||||
self.updateTxHistory();
|
self.updateTxHistory();
|
||||||
storageService.getCleanAndScanAddresses(function(err, walletId) {
|
storageService.getCopayDisclaimerFlag(function(err, val) {
|
||||||
if (walletId && profileService.walletClients[walletId]) {
|
if (val) go.walletHome();
|
||||||
$log.debug('Clear last address cache and Scan ', walletId);
|
storageService.getCleanAndScanAddresses(function(err, walletId) {
|
||||||
addressService.expireAddress(walletId, function(err) {
|
if (walletId && profileService.walletClients[walletId]) {
|
||||||
self.startScan(walletId);
|
$log.debug('Clear last address cache and Scan ', walletId);
|
||||||
});
|
addressService.expireAddress(walletId, function(err) {
|
||||||
storageService.removeCleanAndScanAddresses(function() {});
|
self.startScan(walletId);
|
||||||
}
|
});
|
||||||
|
storageService.removeCleanAndScanAddresses(function() {});
|
||||||
|
}
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue