Only update TXs & balance once after changes to proposals
This commit is contained in:
parent
9d5b26f526
commit
7053c322c9
1 changed files with 9 additions and 9 deletions
|
|
@ -100,17 +100,17 @@ angular.module('copayApp.services')
|
|||
$rootScope.$digest();
|
||||
});
|
||||
|
||||
w.on('txProposalsUpdated', function(dontDigest) {
|
||||
var updateTxsAndBalance = _.debounce(function() {
|
||||
root.updateTxs();
|
||||
// give sometime to the tx to propagate.
|
||||
$timeout(function() {
|
||||
root.updateBalance(function() {
|
||||
if (!dontDigest) {
|
||||
$rootScope.$digest();
|
||||
}
|
||||
});
|
||||
}, 3000);
|
||||
root.updateBalance(function() {
|
||||
$rootScope.$digest();
|
||||
})
|
||||
}, 3000);
|
||||
|
||||
w.on('txProposalsUpdated', function(dontDigest) {
|
||||
updateTxsAndBalance();
|
||||
});
|
||||
|
||||
w.on('txProposalEvent', function(e) {
|
||||
|
||||
var user = w.publicKeyRing.nicknameForCopayer(e.cId);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue