Remove workaround for old get_my_claim() behavior
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user