summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--web/react/components/create_post.jsx2
-rw-r--r--web/react/components/post_right.jsx1
2 files changed, 2 insertions, 1 deletions
diff --git a/web/react/components/create_post.jsx b/web/react/components/create_post.jsx
index 8e9e95751..3714560ea 100644
--- a/web/react/components/create_post.jsx
+++ b/web/react/components/create_post.jsx
@@ -76,7 +76,7 @@ module.exports = React.createClass({
var channel = ChannelStore.get(this.state.channelId);
PostStore.storePendingPost(post);
- PostStore.storeDraft(channel.id, userId, null);
+ PostStore.storeDraft(channel.id, null);
this.setState({messageText: '', submitting: false, postError: null, previews: [], serverError: null});
client.createPost(post, channel,
diff --git a/web/react/components/post_right.jsx b/web/react/components/post_right.jsx
index 8672df439..e081e0e6c 100644
--- a/web/react/components/post_right.jsx
+++ b/web/react/components/post_right.jsx
@@ -147,6 +147,7 @@ CommentPost = React.createClass({
function(data) {
AsyncClient.getPosts(true);
+ var channel = ChannelStore.get(post.channel_id);
var member = ChannelStore.getMember(post.channel_id);
member.msg_count = channel.total_msg_count;
member.last_viewed_at = (new Date).getTime();