From 265cf7d9f4f5e0f467fea290dfcd0a8b779c5c47 Mon Sep 17 00:00:00 2001
From: JoramWilander <jwawilander@gmail.com>
Date: Wed, 12 Aug 2015 14:56:37 -0400
Subject: add received post action on successful post/comment retry

---
 web/react/components/post.jsx | 5 +++++
 1 file changed, 5 insertions(+)

(limited to 'web/react/components/post.jsx')

diff --git a/web/react/components/post.jsx b/web/react/components/post.jsx
index cc505f91f..4b66e175c 100644
--- a/web/react/components/post.jsx
+++ b/web/react/components/post.jsx
@@ -49,6 +49,11 @@ module.exports = React.createClass({
                 member.msg_count = channel.total_msg_count;
                 member.last_viewed_at = (new Date).getTime();
                 ChannelStore.setChannelMember(member);
+
+                AppDispatcher.handleServerAction({
+                    type: ActionTypes.RECIEVED_POST,
+                    post: data
+                });
             }.bind(this),
             function(err) {
                 post.state = Constants.POST_FAILED;
-- 
cgit v1.2.3-1-g7c22

