summaryrefslogtreecommitdiffstats
path: root/web/react/components/post_list.jsx
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2015-08-14 15:13:04 -0400
committerChristopher Speller <crspeller@gmail.com>2015-08-14 15:13:04 -0400
commit9036dd99aa8ba2d9cdd6066a833862bbd9e2653a (patch)
tree41a18a9bcbbcc7cd961cc424878ac37aade5c288 /web/react/components/post_list.jsx
parentb9aef9f2a6b90663cb7ba4ff9e42560c145b631d (diff)
parent26a8e19a357aee9e1b39623e604ce92bdfaa00df (diff)
downloadchat-9036dd99aa8ba2d9cdd6066a833862bbd9e2653a.tar.gz
chat-9036dd99aa8ba2d9cdd6066a833862bbd9e2653a.tar.bz2
chat-9036dd99aa8ba2d9cdd6066a833862bbd9e2653a.zip
Merge pull request #382 from mattermost/revert-360-mm-375d
Revert "MM-375 Adds text formatting features using a modified version…
Diffstat (limited to 'web/react/components/post_list.jsx')
-rw-r--r--web/react/components/post_list.jsx10
1 files changed, 1 insertions, 9 deletions
diff --git a/web/react/components/post_list.jsx b/web/react/components/post_list.jsx
index ad7f4a8bf..83f806b79 100644
--- a/web/react/components/post_list.jsx
+++ b/web/react/components/post_list.jsx
@@ -197,10 +197,7 @@ module.exports = React.createClass({
var post = post_list.posts[msg.props.post_id];
post.message = msg.props.message;
- post.lastEditDate = Date.now();
-
post_list.posts[post.id] = post;
-
this.setState({ post_list: post_list });
PostStore.storePosts(msg.channel_id, post_list);
@@ -433,13 +430,8 @@ module.exports = React.createClass({
// it is the last comment if it is last post in the channel or the next post has a different root post
var isLastComment = utils.isComment(post) && (i === 0 || posts[order[i-1]].root_id != post.root_id);
- var postKey = post.id;
- if (post.lastEditDate) {
- postKey += post.lastEditDate;
- }
-
var postCtl = (
- <Post ref={post.id} sameUser={sameUser} sameRoot={sameRoot} post={post} parentPost={parentPost} key={postKey}
+ <Post ref={post.id} sameUser={sameUser} sameRoot={sameRoot} post={post} parentPost={parentPost} key={post.id}
posts={posts} hideProfilePic={hideProfilePic} isLastComment={isLastComment}
/>
);