From ab4104d6f4c514582a92888c601ae8f2bf834e0f Mon Sep 17 00:00:00 2001 From: Akinwale Ariwodola Date: Wed, 4 Apr 2018 15:29:09 +0100 Subject: [PATCH] removed one more reference to pending publish --- build/index.js | 19 ++----------------- src/lbry.js | 11 +---------- 2 files changed, 3 insertions(+), 27 deletions(-) diff --git a/build/index.js b/build/index.js index fcd03e4..30b1428 100644 --- a/build/index.js +++ b/build/index.js @@ -884,10 +884,9 @@ Object.defineProperty(exports, "__esModule", { __webpack_require__(16); -function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } } - var CHECK_DAEMON_STARTED_TRY_NUMBER = 200; + var Lbry = { isConnected: false, daemonConnectionString: 'http://localhost:5279', @@ -1040,21 +1039,7 @@ Lbry.claim_list_mine = function () { var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; return new Promise(function (resolve, reject) { apiCall('claim_list_mine', params, function (claims) { - claims.forEach(function (_ref) { - var name = _ref.name, - channelName = _ref.channel_name, - txid = _ref.txid, - nout = _ref.nout; - - removePendingPublishIfNeeded({ - name: name, - channelName: channelName, - outpoint: txid + ':' + nout - }); - }); - - var dummyClaims = Lbry.getPendingPublishes().map(pendingPublishToDummyClaim); - resolve([].concat(_toConsumableArray(claims), _toConsumableArray(dummyClaims))); + resolve(claims); }, reject); }); }; diff --git a/src/lbry.js b/src/lbry.js index ad1a962..f287d1f 100644 --- a/src/lbry.js +++ b/src/lbry.js @@ -159,16 +159,7 @@ Lbry.claim_list_mine = (params = {}) => 'claim_list_mine', params, claims => { - claims.forEach(({ name, channel_name: channelName, txid, nout }) => { - removePendingPublishIfNeeded({ - name, - channelName, - outpoint: `${txid}:${nout}`, - }); - }); - - const dummyClaims = Lbry.getPendingPublishes().map(pendingPublishToDummyClaim); - resolve([...claims, ...dummyClaims]); + resolve(claims); }, reject );