mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
PLT-3163Commenting in the RHS while in permalink view (#3272)
This commit is contained in:
@@ -5,7 +5,6 @@ import $ from 'jquery';
|
||||
import ReactDOM from 'react-dom';
|
||||
import AppDispatcher from '../dispatcher/app_dispatcher.jsx';
|
||||
import Client from 'utils/web_client.jsx';
|
||||
import * as AsyncClient from 'utils/async_client.jsx';
|
||||
import ChannelStore from 'stores/channel_store.jsx';
|
||||
import UserStore from 'stores/user_store.jsx';
|
||||
import PostDeletedModal from './post_deleted_modal.jsx';
|
||||
@@ -151,8 +150,6 @@ class CreateComment extends React.Component {
|
||||
Client.createPost(
|
||||
post,
|
||||
(data) => {
|
||||
AsyncClient.getPosts(this.props.channelId);
|
||||
|
||||
const channel = ChannelStore.get(this.props.channelId);
|
||||
const member = ChannelStore.getMember(this.props.channelId);
|
||||
member.msg_count = channel.total_msg_count;
|
||||
|
||||
@@ -67,7 +67,6 @@ class EditPostModal extends React.Component {
|
||||
Client.updatePost(
|
||||
updatedPost,
|
||||
() => {
|
||||
AsyncClient.getPosts(updatedPost.channel_id);
|
||||
window.scrollTo(0, 0);
|
||||
},
|
||||
(err) => {
|
||||
|
||||
Reference in New Issue
Block a user