summaryrefslogtreecommitdiffstats
path: root/web/react/components/post_right.jsx
diff options
context:
space:
mode:
authorJoramWilander <jwawilander@gmail.com>2015-08-12 14:56:37 -0400
committerJoramWilander <jwawilander@gmail.com>2015-08-18 08:59:27 -0400
commit265cf7d9f4f5e0f467fea290dfcd0a8b779c5c47 (patch)
tree325e81868d0b5062745ef710802bd0c953ff14df /web/react/components/post_right.jsx
parent4866606eb708bbc82804e4910f14025c53f67c10 (diff)
downloadchat-265cf7d9f4f5e0f467fea290dfcd0a8b779c5c47.tar.gz
chat-265cf7d9f4f5e0f467fea290dfcd0a8b779c5c47.tar.bz2
chat-265cf7d9f4f5e0f467fea290dfcd0a8b779c5c47.zip
add received post action on successful post/comment retry
Diffstat (limited to 'web/react/components/post_right.jsx')
-rw-r--r--web/react/components/post_right.jsx5
1 files changed, 5 insertions, 0 deletions
diff --git a/web/react/components/post_right.jsx b/web/react/components/post_right.jsx
index e081e0e6c..364cbf1b3 100644
--- a/web/react/components/post_right.jsx
+++ b/web/react/components/post_right.jsx
@@ -152,6 +152,11 @@ CommentPost = 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;