Merge pull request #108 from gabrielbazan7/feat/activityFilter

1 of X wallets should not produce proposals
This commit is contained in:
Gustavo Maximiliano Cortez 2016-09-14 11:48:48 -03:00 committed by GitHub
commit f7c19265d1

View file

@ -870,12 +870,15 @@ angular.module('copayApp.services')
if (err) {
$log.warn('Error updating notifications:' + err);
} else {
var n = lodash.filter(wallet.cachedActivity.n, function(x) {
var n;
n = lodash.filter(wallet.cachedActivity.n, function(x) {
return !typeFilter1[x.type];
});
if (wallet.n == 1) {
var n = lodash.filter(n, function(x) {
if (wallet.m == 1) {
n = lodash.filter(n, function(x) {
return !typeFilter2[x.type];
});
}