add received post action on successful post/comment retry

Этот коммит содержится в:
JoramWilander
2015-08-12 14:56:37 -04:00
родитель 4866606eb7
Коммит 265cf7d9f4
2 изменённых файлов: 10 добавлений и 0 удалений

Просмотреть файл

@@ -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;

Просмотреть файл

@@ -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;