summaryrefslogtreecommitdiffstats
path: root/web/react/components/create_post.jsx
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2015-10-26 13:20:56 -0400
committerJoram Wilander <jwawilander@gmail.com>2015-10-26 13:20:56 -0400
commitb662874519781179b605a10d7ad5b6379bdb3fb3 (patch)
treef1669fcacb31af100a0b543557967e738756ed9e /web/react/components/create_post.jsx
parentf523d41cae391697d9fbfc1857b03803b2b3bc96 (diff)
parent9a4d648c9b9a6c78cd2a171b665bc5aa9ade3634 (diff)
downloadchat-b662874519781179b605a10d7ad5b6379bdb3fb3.tar.gz
chat-b662874519781179b605a10d7ad5b6379bdb3fb3.tar.bz2
chat-b662874519781179b605a10d7ad5b6379bdb3fb3.zip
Merge pull request #1172 from florianorben/PLT-703
PLT-703: Support multiple users being shown as typing underneath input boxes.
Diffstat (limited to 'web/react/components/create_post.jsx')
-rw-r--r--web/react/components/create_post.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/react/components/create_post.jsx b/web/react/components/create_post.jsx
index 055be112d..b74f1871c 100644
--- a/web/react/components/create_post.jsx
+++ b/web/react/components/create_post.jsx
@@ -208,7 +208,7 @@ export default class CreatePost 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.state.channelId, action: 'typing', props: {parent_id: ''}, state: {}});
this.lastTime = t;
}