Update mattermost-redux to master (#6982)

Этот коммит содержится в:
Joram Wilander
2017-07-20 08:56:23 -04:00
коммит произвёл Harrison Healey
родитель 9731eb4764
Коммит 5ae701d133
5 изменённых файлов: 7 добавлений и 6 удалений

Просмотреть файл

@@ -11,7 +11,8 @@ import FileAttachmentList from './file_attachment_list.jsx';
function makeMapStateToProps() {
const selectFilesForPost = makeGetFilesForPost();
return function mapStateToProps(state, ownProps) {
const fileInfos = selectFilesForPost(state, ownProps.post);
const postId = ownProps.post ? ownProps.post.id : '';
const fileInfos = selectFilesForPost(state, postId);
let fileCount = 0;
if (ownProps.post.file_ids) {

Просмотреть файл

@@ -45,7 +45,7 @@ export default class CommentedOnFilesMessage extends React.PureComponent {
id='post_body.plusMore'
defaultMessage=' plus {count, number} other {count, plural, one {file} other {files}}'
values={{
count: this.props.fileInfos.length
count: this.props.fileInfos.length - 1
}}
/>
);

Просмотреть файл

@@ -15,7 +15,7 @@ function makeMapStateToProps() {
return function mapStateToProps(state, ownProps) {
let fileInfos;
if (ownProps.parentPostId) {
fileInfos = selectFileInfosForPost(state, {id: ownProps.parentPostId});
fileInfos = selectFileInfosForPost(state, ownProps.parentPostId);
}
return {