summaryrefslogtreecommitdiffstats
path: root/webapp/components/create_comment.jsx
diff options
context:
space:
mode:
authorCorey Hulen <corey@hulen.com>2016-03-23 08:00:46 -0700
committerCorey Hulen <corey@hulen.com>2016-03-23 08:00:46 -0700
commitaed690c5891a2cff97cc5fa00648c86be54ed8ee (patch)
tree542c2032409c614fb6b73bbfb03a5cdcbdaa9773 /webapp/components/create_comment.jsx
parentc7dbffec4dc11fe13b720ae0cd18afcb5b2f6bbd (diff)
parent9239a7353af2c67a6778ff4cabd164db62087bde (diff)
downloadchat-aed690c5891a2cff97cc5fa00648c86be54ed8ee.tar.gz
chat-aed690c5891a2cff97cc5fa00648c86be54ed8ee.tar.bz2
chat-aed690c5891a2cff97cc5fa00648c86be54ed8ee.zip
Merge pull request #2512 from mattermost/plt-2473
PLT-2473, PLT-2310 Fixing websocket issues.
Diffstat (limited to 'webapp/components/create_comment.jsx')
-rw-r--r--webapp/components/create_comment.jsx8
1 files changed, 2 insertions, 6 deletions
diff --git a/webapp/components/create_comment.jsx b/webapp/components/create_comment.jsx
index 0aeb70c57..177f282d3 100644
--- a/webapp/components/create_comment.jsx
+++ b/webapp/components/create_comment.jsx
@@ -6,7 +6,6 @@ import ReactDOM from 'react-dom';
import AppDispatcher from '../dispatcher/app_dispatcher.jsx';
import * as Client from 'utils/client.jsx';
import * as AsyncClient from 'utils/async_client.jsx';
-import SocketStore from 'stores/socket_store.jsx';
import ChannelStore from 'stores/channel_store.jsx';
import UserStore from 'stores/user_store.jsx';
import PostDeletedModal from './post_deleted_modal.jsx';
@@ -17,6 +16,7 @@ import MsgTyping from './msg_typing.jsx';
import FileUpload from './file_upload.jsx';
import FilePreview from './file_preview.jsx';
import * as Utils from 'utils/utils.jsx';
+import * as GlobalActions from 'action_creators/global_actions.jsx';
import Constants from 'utils/constants.jsx';
@@ -196,11 +196,7 @@ class CreateComment extends React.Component {
}
}
- const t = Date.now();
- if ((t - this.lastTime) > Constants.UPDATE_TYPING_MS) {
- SocketStore.sendMessage({channel_id: this.props.channelId, action: 'typing', props: {parent_id: this.props.rootId}});
- this.lastTime = t;
- }
+ GlobalActions.emitLocalUserTypingEvent(this.props.channelId, this.props.rootId);
}
handleUserInput(messageText) {
let draft = PostStore.getCommentDraft(this.props.rootId);