lbry-desktop/ui/redux/selectors
infinite-persistence e9a2f44899
Commentron: incorporate 'setting.Get' into 'doFetchCreatorSettings'
## General
- `setting.List`: returns full creator settings. Requires signature (i.e. you own the channel)
- `setting.Get`: returns a public subset of the creator settings. No signature required, and it is mainly used by the GUI to determine the constraints of a channel (e.g. comments enabled? min tip requirements? etc.). Does not include private settings like "blocked words list".

`doFetchCreatorSettings` will handle both of these. Clients that uses the stashed results (`settingsByChannelId`) just needs to be aware the result might not contain everything, depending on whether you own the channel or not.

## Misc Related Changes
- Finally fix the reducer for COMMENT_FETCH_SETTINGS_COMPLETED to not purge the data on each call.
- Change `doFetchCreatorSettings` to operate on a single channel instead of multiple. We ended up not using the multple mode anyway, so it was wasteful code trying to batch the promises.
- `commentsDisabledChannelIds` is no longer needed. Previously, this was created just to differentiate between Creator (full) and Channel (subset) settings. It's cleaner to just use one object, so eliminated this.
- Remove unused 'commentingEnabled'.

## Aside
- There are now 2 ways to know if a channel has disabled comments: (1) from `comment.list` and `setting.Get|List`. Both of them updates `settingsByChannelId`, so it'll still be a single place for the GUI to check against.
2021-08-12 14:51:41 +08:00
..
app.js update livestream eligibilty 2021-04-12 11:17:17 -04:00
blocked.js New moderation tools: block & mute (#5572) 2021-03-03 13:50:16 -05:00
coinSwap.js CoinSwap: websocket + multi-coin 2021-04-13 14:02:25 -04:00
comments.js Commentron: incorporate 'setting.Get' into 'doFetchCreatorSettings' 2021-08-12 14:51:41 +08:00
content.js Fix delete option broken / missing 2021-08-11 10:07:43 -04:00
file_info.js working 2020-12-16 10:52:22 -05:00
livestream.js use commentron for live view counts 2021-06-17 14:58:55 -04:00
notifications.js fetch notofication/categories for notification types dropdown 2021-04-30 12:45:46 -04:00
publish.js refactor lbrytv web server 2019-11-11 13:27:29 -05:00
reactions.js fix dislike crash when no claim 2021-08-06 14:10:05 -04:00
reportContent.js Add 'ReportContent' actions/reducers/selectors 2021-04-21 10:49:31 -04:00
rewards.js initial page view sets referring channel 2020-10-07 11:44:12 -04:00
search.js Remove hardcoded filters in doSearch 2021-07-14 11:16:19 +08:00
settings.js homepages v2 2021-07-14 14:09:46 -04:00
subscriptions.js fix colon handling 2021-07-15 17:48:02 -04:00
sync.js add fatal error handling when sync/get fails with unknown error 2020-11-13 14:48:04 -05:00
tags.js sync reducer stuff 2020-10-27 10:17:11 -04:00
user.js wip 2021-06-08 13:25:52 -04:00