diff --git a/src/ui/component/commentCreate/index.js b/src/ui/component/commentCreate/index.js index f5ea1440d..3848e3ef6 100644 --- a/src/ui/component/commentCreate/index.js +++ b/src/ui/component/commentCreate/index.js @@ -1,18 +1,15 @@ import { connect } from 'react-redux'; import { doCommentCreate, makeSelectClaimForUri, selectMyActiveChannelUri } from 'lbry-redux'; -import { selectCommentsInfoAck, doAckComments } from 'redux/selectors/app'; import CommentCreate from './view'; const select = (state, props) => ({ claim: makeSelectClaimForUri(props.uri)(state), channelUri: selectMyActiveChannelUri(state), - acksComments: selectCommentsInfoAck(state), }); const perform = dispatch => ({ createComment: params => dispatch(doCommentCreate(params)), - ackComments: () => dispatch(doAckComments()), }); export default connect( diff --git a/src/ui/constants/action_types.js b/src/ui/constants/action_types.js index 7464be26d..993f8c2cd 100644 --- a/src/ui/constants/action_types.js +++ b/src/ui/constants/action_types.js @@ -14,7 +14,6 @@ export const DAEMON_VERSION_MATCH = 'DAEMON_VERSION_MATCH'; export const DAEMON_VERSION_MISMATCH = 'DAEMON_VERSION_MISMATCH'; export const VOLUME_CHANGED = 'VOLUME_CHANGED'; export const ADD_COMMENT = 'ADD_COMMENT'; -export const ACTIVATE_COMMENTS = 'ACTIVATE_COMMENTS'; export const SHOW_MODAL = 'SHOW_MODAL'; export const HIDE_MODAL = 'HIDE_MODAL'; export const CHANGE_MODALS_ALLOWED = 'CHANGE_MODALS_ALLOWED'; diff --git a/src/ui/redux/actions/app.js b/src/ui/redux/actions/app.js index 5bd8971e9..a3b58135d 100644 --- a/src/ui/redux/actions/app.js +++ b/src/ui/redux/actions/app.js @@ -380,12 +380,6 @@ export function doClickCommentButton() { }; } -export function doAckComments() { - return { - type: ACTIONS.COMMENTS_ACK, - }; -} - export function doConditionalAuthNavigate(newSession) { return (dispatch, getState) => { const state = getState(); diff --git a/src/ui/redux/reducers/app.js b/src/ui/redux/reducers/app.js index 04601f541..a08a19e24 100644 --- a/src/ui/redux/reducers/app.js +++ b/src/ui/redux/reducers/app.js @@ -36,7 +36,6 @@ export type AppState = { isUpgradeAvailable: ?boolean, isUpgradeSkipped: ?boolean, hasClickedComment: boolean, - commentsInfoAck: boolean, enhancedLayout: boolean, searchOptionsExpanded: boolean, }; @@ -56,7 +55,6 @@ const defaultState: AppState = { autoUpdateDeclined: false, modalsAllowed: true, hasClickedComment: false, - commentsInfoAck: false, downloadProgress: undefined, upgradeDownloading: undefined, upgradeDownloadComplete: undefined, @@ -198,7 +196,6 @@ reducers[ACTIONS.CLEAR_UPGRADE_TIMER] = state => checkUpgradeTimer: undefined, }); // HERE -reducers[ACTIONS.COMMENTS_ACK] = state => Object.assign({}, state, { commentsInfoAck: true }); reducers[ACTIONS.ADD_COMMENT] = state => Object.assign({}, state, { diff --git a/src/ui/redux/selectors/app.js b/src/ui/redux/selectors/app.js index 4e2545e9b..86d683e0e 100644 --- a/src/ui/redux/selectors/app.js +++ b/src/ui/redux/selectors/app.js @@ -29,11 +29,6 @@ export const selectHasClickedComment = createSelector( state => state.hasClickedComment ); -export const selectCommentsInfoAck = createSelector( - selectState, - state => state.commentsInfoAck -); - export const selectRemoteVersion = createSelector( selectState, state => state.remoteVersion