diff --git a/CHANGELOG.md b/CHANGELOG.md index bace21be7..34aabd9bb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ### Changed +- Updated lbry-sdk to [0.79.1](https://github.com/lbryio/lbry-sdk/releases/tag/v0.79.1) + ### Fixed - Fix 'transcoding' checkbox state when switching file types _community pr!_ ([#4529](https://github.com/lbryio/lbry-desktop/pull/4529)) diff --git a/ui/redux/actions/app.js b/ui/redux/actions/app.js index 9c7eb6914..fd1eb8171 100644 --- a/ui/redux/actions/app.js +++ b/ui/redux/actions/app.js @@ -45,8 +45,6 @@ import { import { selectUser } from 'redux/selectors/user'; // import { selectDaemonSettings } from 'redux/selectors/settings'; import { doGetSync } from 'lbryinc'; -import { doClaimRewardType } from 'redux/actions/rewards'; -import REWARDS from 'rewards'; import { doAuthenticate } from 'redux/actions/user'; import { lbrySettings as config, version as appVersion } from 'package.json'; import analytics, { SHARE_INTERNAL } from 'analytics'; @@ -483,23 +481,6 @@ export function doAnaltyicsPurchaseEvent(fileInfo) { const purchaseInt = Number(Number(purchasePrice).toFixed(0)); analytics.purchaseEvent(purchaseInt); } - - setTimeout(() => { - const contentFeeTxid = fileInfo.content_fee && fileInfo.content_fee.txid; - const purchaseReceiptTxid = fileInfo.purchase_receipt && fileInfo.purchase_receipt.txid; - // These aren't guaranteed to exist - const txid = contentFeeTxid || purchaseReceiptTxid; - - if (txid) { - dispatch( - doClaimRewardType(REWARDS.TYPE_PAID_CONTENT, { - failSilently: true, - params: { transaction_id: txid }, - }) - ); - } - // Give it some time to get into the mempool - }, 3000); }; } diff --git a/ui/redux/actions/rewards.js b/ui/redux/actions/rewards.js index 915c8c8e1..4af3b8c07 100644 --- a/ui/redux/actions/rewards.js +++ b/ui/redux/actions/rewards.js @@ -42,8 +42,7 @@ export function doClaimRewardType(rewardType, options = {}) { rewardType !== rewards.TYPE_REWARD_CODE && rewardType !== rewards.TYPE_CONFIRM_EMAIL && rewardType !== rewards.TYPE_DAILY_VIEW && - rewardType !== rewards.TYPE_NEW_ANDROID && - rewardType !== rewards.TYPE_PAID_CONTENT + rewardType !== rewards.TYPE_NEW_ANDROID ) { if (!reward || reward.transaction_id) { // already claimed or doesn't exist, do nothing diff --git a/ui/rewards.js b/ui/rewards.js index e5d7ee715..f026f9fa3 100644 --- a/ui/rewards.js +++ b/ui/rewards.js @@ -18,7 +18,6 @@ rewards.TYPE_SUBSCRIPTION = 'subscription'; rewards.YOUTUBE_CREATOR = 'youtube_creator'; rewards.TYPE_DAILY_VIEW = 'daily_view'; rewards.TYPE_NEW_ANDROID = 'new_android'; -rewards.TYPE_PAID_CONTENT = 'paid_content'; rewards.claimReward = (type, rewardParams) => { function requestReward(resolve, reject, params) {