fix check for claims

This commit is contained in:
Patric Karlström 2021-01-12 02:19:37 +01:00
parent 49dee407c8
commit a261a62584

View file

@ -691,11 +691,15 @@ public final class Helper {
LbryFile file = files.get(i);
// remove own claims as well
if (Lbry.ownClaims != null && Lbry.ownClaims.size() > 0) {
boolean hasClaim = false;
for (Claim own : Lbry.ownClaims) {
if (own.getClaimId().equalsIgnoreCase(file.getClaimId())) {
continue;
hasClaim = true;
}
}
if (hasClaim) {
continue;
}
}
if (!Helper.isNullOrEmpty(file.getDownloadPath())) {
filtered.add(file);