summaryrefslogtreecommitdiffstats
path: root/web/react/components/rhs_thread.jsx
diff options
context:
space:
mode:
author=Corey Hulen <corey@hulen.com>2015-12-03 15:17:01 -0800
committer=Corey Hulen <corey@hulen.com>2015-12-03 15:17:01 -0800
commit0ce22892a9be07b59a6a55f786049302ec7eb666 (patch)
treeee7eedea645242a0d58c89ce5fe4a8caad20442e /web/react/components/rhs_thread.jsx
parentd5d66214db6c108eb94cf2e43c0c4538cdb5d7ae (diff)
downloadchat-0ce22892a9be07b59a6a55f786049302ec7eb666.tar.gz
chat-0ce22892a9be07b59a6a55f786049302ec7eb666.tar.bz2
chat-0ce22892a9be07b59a6a55f786049302ec7eb666.zip
PLT-1310 fixing regression caused by this bug
Diffstat (limited to 'web/react/components/rhs_thread.jsx')
-rw-r--r--web/react/components/rhs_thread.jsx9
1 files changed, 9 insertions, 0 deletions
diff --git a/web/react/components/rhs_thread.jsx b/web/react/components/rhs_thread.jsx
index d111094e7..2edcd8b37 100644
--- a/web/react/components/rhs_thread.jsx
+++ b/web/react/components/rhs_thread.jsx
@@ -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];