PR cleanup #1164
1 changed files with 5 additions and 1 deletions
|
@ -691,11 +691,15 @@ public final class Helper {
|
||||||
LbryFile file = files.get(i);
|
LbryFile file = files.get(i);
|
||||||
// remove own claims as well
|
// remove own claims as well
|
||||||
if (Lbry.ownClaims != null && Lbry.ownClaims.size() > 0) {
|
if (Lbry.ownClaims != null && Lbry.ownClaims.size() > 0) {
|
||||||
|
boolean hasClaim = false;
|
||||||
for (Claim own : Lbry.ownClaims) {
|
for (Claim own : Lbry.ownClaims) {
|
||||||
if (own.getClaimId().equalsIgnoreCase(file.getClaimId())) {
|
if (own.getClaimId().equalsIgnoreCase(file.getClaimId())) {
|
||||||
continue;
|
hasClaim = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (hasClaim) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (!Helper.isNullOrEmpty(file.getDownloadPath())) {
|
if (!Helper.isNullOrEmpty(file.getDownloadPath())) {
|
||||||
filtered.add(file);
|
filtered.add(file);
|
||||||
|
|
Loading…
Reference in a new issue