summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorFlorian Orben <florian.orben@gmail.com>2015-10-26 02:24:46 +0100
committerFlorian Orben <florian.orben@gmail.com>2015-10-26 17:46:56 +0100
commitb7aa4220d575d446830a0b0c9a3f753214272422 (patch)
tree9acfb63b009bd2af6069d3f9b7484778976d0ea8 /web
parent46042d995bc553a10513c527aba106e1b92d04d4 (diff)
downloadchat-b7aa4220d575d446830a0b0c9a3f753214272422.tar.gz
chat-b7aa4220d575d446830a0b0c9a3f753214272422.tar.bz2
chat-b7aa4220d575d446830a0b0c9a3f753214272422.zip
use constant value to check if to send a typing event for comments
Diffstat (limited to 'web')
-rw-r--r--web/react/components/create_comment.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/react/components/create_comment.jsx b/web/react/components/create_comment.jsx
index 435c7d542..18936e808 100644
--- a/web/react/components/create_comment.jsx
+++ b/web/react/components/create_comment.jsx
@@ -147,7 +147,7 @@ export default class CreateComment extends React.Component {
}
const t = Date.now();
- if ((t - this.lastTime) > 5000) {
+ 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;
}