lbry-desktop/ui/util
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
..
autoLaunch.js fix autolaunch after changing linux cmd capitalization 2019-12-17 13:38:09 -05:00
buildHomepage.js no limit on stream types for following 2021-08-02 16:14:33 -04:00
claim.js Commentron: incorporate 'setting.Get' into 'doFetchCreatorSettings' 2021-08-12 14:51:41 +08:00
comments.js Restore comment pagination 2021-07-16 10:54:12 -04:00
context-menu.js Clear dev-web warnings and lint 2021-02-19 14:18:44 -05:00
country.js Util to get list of countries 2021-04-21 10:49:31 -04:00
debounce.js refactor lbrytv web server 2019-11-11 13:27:29 -05:00
deep-equal.js refactor lbrytv web server 2019-11-11 13:27:29 -05:00
default-languages.js Sort all language dropdowns, not just in the Settings Page. 2021-06-07 10:15:07 +08:00
detect-typing.js refactor lbrytv web server 2019-11-11 13:27:29 -05:00
downloadClaim.js Move 'Download' and 'Report Content' into overflow menu. 2021-06-18 15:50:13 -04:00
enhanced-layout.js mobile view 2019-12-20 15:03:18 -05:00
fetch.js add 10 second timeout to lbrytv status call 2020-03-16 17:59:24 -04:00
form-validation.js allow sending directly to a channel or content address (#5990) 2021-05-20 15:30:40 -04:00
format-bytes.js use new buffer analytics api 2020-08-07 22:54:29 -04:00
formatAriaLabel.js fix typo 2021-07-29 11:52:34 -05:00
formatMediaDuration.js add more info for claim-preview-tile aria label 2021-07-15 18:12:11 -05:00
full-screen.js refactor lbrytv web server 2019-11-11 13:27:29 -05:00
generate-thumbnail-name.js style pass for channel edit 2020-07-01 22:04:23 -04:00
handle-fetch.js add search code from lbry-redux 2020-07-27 16:37:36 -04:00
hex.js hyperchats 2021-04-23 16:20:17 -04:00
lazyImport.js Fix broken embeds in incognito 2021-07-23 00:50:02 +08:00
number.js show total balance on wallet page/header 2021-01-22 11:46:27 -05:00
object.js refactor lbrytv web server 2019-11-11 13:27:29 -05:00
parse-data.js refactor lbrytv web server 2019-11-11 13:27:29 -05:00
publish.js wip 2021-06-08 13:25:52 -04:00
query-params.js getSearchQueryString: add "time_filter" option 2021-04-07 12:08:17 -04:00
redux-utils.js refactor lbrytv web server 2019-11-11 13:27:29 -05:00
remark-lbry.js flow fixes 2020-12-16 10:52:22 -05:00
remark-timestamp.js Fix timestamp regex error 2021-03-09 16:05:00 -05:00
saved-passwords.js allow signin on local using non-production SameSite=Lax 2020-07-24 16:48:05 -04:00
search.js Moderation: resolve chan name or URL instead of using Lighthouse. 2021-06-19 17:11:45 +08:00
set-operations.js refactor lbrytv web server 2019-11-11 13:27:29 -05:00
shuffle-array.js refactor lbrytv web server 2019-11-11 13:27:29 -05:00
string.js refactor lbrytv web server 2019-11-11 13:27:29 -05:00
swap-json.js refactor lbrytv web server 2019-11-11 13:27:29 -05:00
sync-settings.js all settings constants come from redux 2020-07-27 11:53:14 -04:00
throttle.js refactor lbrytv web server 2019-11-11 13:27:29 -05:00
thumbnail.js 100% compression doesn't work with current CDN url 2021-07-20 02:34:25 +08:00
time.js Allow video sharing with start timestamp 2020-05-08 14:00:59 -04:00
url.js RSS: Use canonical_url (with ':') instead of slicing to 2 characters. 2021-07-12 17:06:03 -04:00
web-file-system.js Support drag-and-drop file publishing (#4170) 2020-05-25 10:27:36 -04:00
web.js rss tests 2021-08-06 17:05:36 -04:00
zoomWindow.js Make zoom level persistent on Desktop 2021-01-26 10:20:59 -05:00