Remove workaround for old get_my_claim() behavior

This commit is contained in:
Alex Liebowitz 2016-09-24 02:59:46 -04:00
parent 9e3dc5b5ce
commit 89f87bb604

View file

@ -166,16 +166,8 @@ var MyFilesPage = React.createClass({
var ownershipLoadedCount = 0;
for (let i = 0; i < filesInfo.length; i++) {
let fileInfo = filesInfo[i];
lbry.call('get_my_claim', {name: fileInfo.lbry_uri}, (claim) => {
this._filesOwnership[fileInfo.lbry_uri] = false;
ownershipLoadedCount++;
if (ownershipLoadedCount >= filesInfo.length) {
this.setState({
filesOwnershipLoaded: true,
});
}
}, (err) => {
this._filesOwnership[fileInfo.lbry_uri] = true;
lbry.getMyClaim(fileInfo.lbry_uri, (claim) => {
this._filesOwnership[fileInfo.lbry_uri] = !!claim;
ownershipLoadedCount++;
if (ownershipLoadedCount >= filesInfo.length) {
this.setState({