summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
Diffstat (limited to 'web')
-rw-r--r--web/react/components/post.jsx5
-rw-r--r--web/react/components/post_right.jsx5
2 files changed, 10 insertions, 0 deletions
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;
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;