hunk.code_window:         GlobalActions.emitUserPostedEvent(post);
           this.setState({messageText: '', submitting: false, postError: null, previews: [], serverError: null});
           Client.createPost(post,
               () => {
                   PostStore.removePendingPost(post.pending_post_id);
  
hunk.labels: keep keep keep keep replace keep
hunk.after_edit:             (data) => {
  
hunk.file_path: webapp/components/create_post.jsx
hunk.type: replace
file: // Copyright (c) 2015 Mattermost, Inc. All Rights Reserved.
  // See License.txt for license information.
  
  import PostAttachment from './post_attachment.jsx';
  
  import React from 'react';
  
  export default class PostAttachmentList extends React.Component {
      render() {
          let content = [];
          this.props.attachments.forEach((attachment, i) => {
              content.push(
                  <PostAttachment
                      attachment={attachment}
                      key={'att_' + i}
                  />
              );
          });
  
          return (
              <div className='attachment_list'>
                  {content}
              </div>
          );
      }
  }
  
  PostAttachmentList.propTypes = {
      attachments: React.PropTypes.array.isRequired
  };
  