Merge pull request #108 from gabrielbazan7/feat/activityFilter
1 of X wallets should not produce proposals
This commit is contained in:
commit
f7c19265d1
1 changed files with 6 additions and 3 deletions
|
|
@ -870,12 +870,15 @@ angular.module('copayApp.services')
|
||||||
if (err) {
|
if (err) {
|
||||||
$log.warn('Error updating notifications:' + err);
|
$log.warn('Error updating notifications:' + err);
|
||||||
} else {
|
} else {
|
||||||
var n = lodash.filter(wallet.cachedActivity.n, function(x) {
|
|
||||||
|
var n;
|
||||||
|
|
||||||
|
n = lodash.filter(wallet.cachedActivity.n, function(x) {
|
||||||
return !typeFilter1[x.type];
|
return !typeFilter1[x.type];
|
||||||
});
|
});
|
||||||
|
|
||||||
if (wallet.n == 1) {
|
if (wallet.m == 1) {
|
||||||
var n = lodash.filter(n, function(x) {
|
n = lodash.filter(n, function(x) {
|
||||||
return !typeFilter2[x.type];
|
return !typeFilter2[x.type];
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue