diff options
author | Joram Wilander <jwawilander@gmail.com> | 2015-07-10 13:49:15 -0400 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2015-07-10 13:49:15 -0400 |
commit | 78cc36fa9a35d6e35088b8215dabb9ee14869f95 (patch) | |
tree | 8bf831e0f517f9d73689e25631af46f6c37088dc /web/react | |
parent | 5bb2acc996dc037b15e5a2e1f27b29c87a6bb9b0 (diff) | |
download | chat-78cc36fa9a35d6e35088b8215dabb9ee14869f95.tar.gz chat-78cc36fa9a35d6e35088b8215dabb9ee14869f95.tar.bz2 chat-78cc36fa9a35d6e35088b8215dabb9ee14869f95.zip |
Revert "MM-831 Post timestamp now updates in real time"
Diffstat (limited to 'web/react')
-rw-r--r-- | web/react/components/post_list.jsx | 5 | ||||
-rw-r--r-- | web/react/components/sidebar_right.jsx | 6 |
2 files changed, 0 insertions, 11 deletions
diff --git a/web/react/components/post_list.jsx b/web/react/components/post_list.jsx index 177e4a1db..d6dc9ce30 100644 --- a/web/react/components/post_list.jsx +++ b/web/react/components/post_list.jsx @@ -78,7 +78,6 @@ module.exports = React.createClass({ PostStore.addChangeListener(this._onChange); ChannelStore.addChangeListener(this._onChange); - UserStore.addStatusesChangeListener(this._onChange); SocketStore.addChangeListener(this._onSocketChange); $(".post-list-holder-by-time").perfectScrollbar(); @@ -158,7 +157,6 @@ module.exports = React.createClass({ componentWillUnmount: function() { PostStore.removeChangeListener(this._onChange); ChannelStore.removeChangeListener(this._onChange); - UserStore.removeStatusesChangeListener(this._onChange); SocketStore.removeChangeListener(this._onSocketChange); $('body').off('click.userpopover'); }, @@ -195,9 +193,6 @@ module.exports = React.createClass({ this.scrolledToNew = false; } this.setState(newState); - } else { - // Updates the timestamp on each post - this.forceUpdate() } }, _onSocketChange: function(msg) { diff --git a/web/react/components/sidebar_right.jsx b/web/react/components/sidebar_right.jsx index 60c8ffae6..8334b345b 100644 --- a/web/react/components/sidebar_right.jsx +++ b/web/react/components/sidebar_right.jsx @@ -16,16 +16,10 @@ module.exports = React.createClass({ componentDidMount: function() { PostStore.addSearchChangeListener(this._onSearchChange); PostStore.addSelectedPostChangeListener(this._onSelectedChange); - UserStore.addStatusesChangeListener(this._onChange); }, componentWillUnmount: function() { PostStore.removeSearchChangeListener(this._onSearchChange); PostStore.removeSelectedPostChangeListener(this._onSelectedChange); - UserStore.removeStatusesChangeListener(this._onChange); - }, - _onChange: function() { - // Updates the timestamp on each post - this.forceUpdate(); }, _onSelectedChange: function(from_search) { if (this.isMounted()) { |