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
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
country.js Util to get list of countries 2021-04-21 10:49:31 -04:00
debounce.js
deep-equal.js
default-languages.js Sort all language dropdowns, not just in the Settings Page. 2021-06-07 10:15:07 +08:00
detect-typing.js
downloadClaim.js Move 'Download' and 'Report Content' into overflow menu. 2021-06-18 15:50:13 -04:00
enhanced-layout.js
fetch.js
form-validation.js allow sending directly to a channel or content address (#5990) 2021-05-20 15:30:40 -04:00
format-bytes.js
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
generate-thumbnail-name.js
handle-fetch.js
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
object.js
parse-data.js
publish.js wip 2021-06-08 13:25:52 -04:00
query-params.js
redux-utils.js
remark-lbry.js
remark-timestamp.js
saved-passwords.js
search.js Moderation: resolve chan name or URL instead of using Lighthouse. 2021-06-19 17:11:45 +08:00
set-operations.js
shuffle-array.js
string.js
swap-json.js
sync-settings.js
throttle.js
thumbnail.js 100% compression doesn't work with current CDN url 2021-07-20 02:34:25 +08:00
time.js
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
web.js rss tests 2021-08-06 17:05:36 -04:00
zoomWindow.js