Merge pull request #1611 from mattermost/PLT-1301

PLT-1310 fixing regression caused by fix for PLT-1310
Этот коммит содержится в:
Christopher Speller
2015-12-04 08:38:01 -05:00
родитель 1e654fa77b 0ce22892a9
Коммит 3b892a3d04

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

@@ -101,6 +101,15 @@ export default class RhsThread extends React.Component {
}
if (currentPosts.posts[currentPosts.order[0]].channel_id === currentSelected.posts[currentSelected.order[0]].channel_id) {
for (var key in currentSelected.posts) {
if (currentSelected.posts.hasOwnProperty(key)) {
var post = currentSelected.posts[key];
if (post.pending_post_id) {
Reflect.deleteProperty(currentSelected.posts, key);
}
}
}
for (var postId in currentPosts.posts) {
if (currentPosts.posts.hasOwnProperty(postId)) {
currentSelected.posts[postId] = currentPosts.posts[postId];