Remove workaround for old get_my_claim() behavior
This commit is contained in:
parent
9e3dc5b5ce
commit
89f87bb604
1 changed files with 2 additions and 10 deletions
|
@ -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({
|
||||
|
|
Loading…
Add table
Reference in a new issue