Update CHANGELOG.md

This commit is contained in:
Oleg Silkin 2020-02-18 17:48:10 -05:00 committed by Sean Yesmunt
parent e1bc577efd
commit 9f04dd5bfc
3 changed files with 7 additions and 4 deletions

View file

@ -12,6 +12,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Javanese language support ([#3685](https://github.com/lbryio/lbry-desktop/pull/3685))
### Changed
- Drops support for publishing anonymous comments ([#3705](https://github.com/lbryio/lbry-desktop/pull/3705))
### Fixed

View file

@ -21,7 +21,7 @@ export function CommentCreate(props: Props) {
const { claim_id: claimId } = claim;
const [commentValue, setCommentValue] = usePersistedState(`comment-${claimId}`, '');
const [commentAck, setCommentAck] = usePersistedState('comment-acknowledge', false);
const [channel, setChannel] = usePersistedState('comment-channel', 'anonymous');
const [channel, setChannel] = usePersistedState('comment-channel', '');
const [charCount, setCharCount] = useState(commentValue.length);
function handleCommentChange(event) {
@ -59,7 +59,7 @@ export function CommentCreate(props: Props) {
return (
<Form onSubmit={handleSubmit}>
<ChannelSection channel={channel} onChannelChange={handleChannelChange} />
<ChannelSection channel={channel} hideAnon onChannelChange={handleChannelChange} />
<FormField
disabled={channel === CHANNEL_NEW}
type="textarea"

View file

@ -1,5 +1,5 @@
// @flow
import { CHANNEL_NEW } from 'constants/claim';
import { CHANNEL_NEW, CHANNEL_ANONYMOUS } from 'constants/claim';
import React, { Fragment } from 'react';
import { FormField } from 'component/common/form';
import ChannelCreate from 'component/channelCreate';
@ -12,6 +12,7 @@ type Props = {
createChannel: (string, number) => Promise<any>,
fetchChannelListMine: () => void,
fetchingChannels: boolean,
hideAnon: boolean,
includeNew?: boolean,
label?: string,
injected?: Array<string>,
@ -70,7 +71,7 @@ class ChannelSection extends React.PureComponent<Props, State> {
render() {
const channel = this.state.addingChannel ? 'new' : this.props.channel;
const { fetchingChannels, channels = [], label, injected = [] } = this.props;
const { fetchingChannels, channels = [], hideAnon, label, injected = [] } = this.props;
const { addingChannel } = this.state;
return (
@ -82,6 +83,7 @@ class ChannelSection extends React.PureComponent<Props, State> {
onChange={this.handleChannelChange}
value={channel}
>
{!hideAnon && <option value={CHANNEL_ANONYMOUS}>{__('Anonymous')}</option>}
{channels &&
channels.map(({ name, claim_id: claimId }) => (
<option key={claimId} value={name}>