fix go walletHome problem

This commit is contained in:
Gabriel Bazán 2015-12-02 11:29:59 -03:00
commit d2c2ec3edd

View file

@ -1348,6 +1348,10 @@ angular.module('copayApp.controllers').controller('indexController', function($r
self.updateTxHistory(); self.updateTxHistory();
storageService.getProfile(function(err, profile) { storageService.getProfile(function(err, profile) {
if (profile && profile.agreeDisclaimer) go.walletHome(); if (profile && profile.agreeDisclaimer) go.walletHome();
//compatible
storageService.getCopayDisclaimerFlag(function(err, val) {
if (val) go.walletHome();
storageService.getCleanAndScanAddresses(function(err, walletId) { storageService.getCleanAndScanAddresses(function(err, walletId) {
if (walletId && profileService.walletClients[walletId]) { if (walletId && profileService.walletClients[walletId]) {
$log.debug('Clear last address cache and Scan ', walletId); $log.debug('Clear last address cache and Scan ', walletId);
@ -1359,6 +1363,7 @@ angular.module('copayApp.controllers').controller('indexController', function($r
}); });
}); });
}); });
});
$rootScope.$on('Local/SetTab', function(event, tab, reset) { $rootScope.$on('Local/SetTab', function(event, tab, reset) {
self.setTab(tab, reset); self.setTab(tab, reset);