Merge pull request #1427 from isocolsky/fix/notification

Removed 'funds received' notification for change addresses
This commit is contained in:
Matias Alejo Garcia 2014-09-22 09:51:30 -03:00
commit 9a38828b85
3 changed files with 37 additions and 7 deletions

View file

@ -69,8 +69,10 @@ angular.module('copayApp.services')
}
});
w.on('tx', function(address) {
notification.funds('Funds received!', address);
w.on('tx', function(address, isChange) {
if (!isChange) {
notification.funds('Funds received!', address);
}
root.updateBalance(function() {
$rootScope.$digest();
});