Fix hasUnread on HashtagTimeline (#4644)

remotes/1727458204337373841/tmp_refs/heads/signup-info-prompt
abcang 2017-08-21 00:12:06 +09:00 committed by Eugen Rochko
parent fe5b66aa08
commit 23792f5a7c
1 changed files with 2 additions and 2 deletions

View File

@ -14,8 +14,8 @@ import { addColumn, removeColumn, moveColumn } from '../../actions/columns';
import { FormattedMessage } from 'react-intl';
import createStream from '../../stream';
const mapStateToProps = state => ({
hasUnread: state.getIn(['timelines', 'tag', 'unread']) > 0,
const mapStateToProps = (state, props) => ({
hasUnread: state.getIn(['timelines', `hashtag:${props.params.id}`, 'unread']) > 0,
streamingAPIBaseURL: state.getIn(['meta', 'streaming_api_base_url']),
accessToken: state.getIn(['meta', 'access_token']),
});