lbryio / lbry-desktop

A browser and wallet for LBRY, the decentralized, user-controlled content marketplace.
https://lbry.tech
MIT License
3.56k stars 414 forks source link

Remove blocked and filtered reducers/selectors/actions. #7682

Open Ruk33 opened 2 years ago

Ruk33 commented 2 years ago

Fixes

Issue Number: https://github.com/lbryio/lbry-desktop/issues/7681

What is the current behavior?

What is the new behavior?

blocked & filtered actions/selector/reducers were removed. Also, if there is a censor reason, we will display it.

image

If no message is present, the default one will be used ("Your hub has blocked this content because it subscribes to the following blocking channel:")

Other information

PR Checklist

Toggle... What kind of change does this PR introduce? - [ ] Bugfix - [ ] Feature - [ ] Code style update (formatting) - [x] Refactoring (no functional changes) - [ ] Documentation changes - [ ] Other - Please describe: Please check all that apply to this PR using "x": - [x] I have checked that this PR is not a duplicate of an existing PR (open, closed or merged) - [ ] I added a line describing my change to CHANGELOG.md - [x] I have checked that this PR does not introduce a breaking change - [ ] This PR introduces breaking changes and I have provided a detailed explanation below
Ruk33 commented 2 years ago

Thank you @jessopb, sadly I couldn't fix it without using // $FlowFixMe. Not ideal but it gets rid of the warning.

I tried typecasting but it kept complaining about not being compatible with mixed

jessopb commented 2 years ago

This will be merged when infrastructure is ready.