diff options
Diffstat (limited to 'web/react/components/msg_typing.jsx')
-rw-r--r-- | web/react/components/msg_typing.jsx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/web/react/components/msg_typing.jsx b/web/react/components/msg_typing.jsx index 3b97fb2ef..089412229 100644 --- a/web/react/components/msg_typing.jsx +++ b/web/react/components/msg_typing.jsx @@ -13,7 +13,7 @@ module.exports = React.createClass({ SocketStore.addChangeListener(this._onSocketChange); }, componentWillUnmount: function() { - ChannelStore.removeDiffCHannelChangeListener(this._onChange); + ChannelStore.removeDiffChannelChangeListener(this._onChange); SocketStore.removeChangeListener(this._onSocketChange); }, _onChange: function() { @@ -42,6 +42,9 @@ module.exports = React.createClass({ }, 3000); } } + else if (msg.action == "posted" && msg.channel_id === this.props.channelId) { + this.setState({text:""}) + } }, getInitialState: function() { return { text: "" }; |