remove paid content reward claim
This commit is contained in:
parent
8381720ae7
commit
b7f3dcad76
4 changed files with 3 additions and 22 deletions
|
@ -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))
|
||||
|
|
|
@ -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);
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue