summaryrefslogtreecommitdiffstats
path: root/web/react/components
diff options
context:
space:
mode:
authornickago <ngonella@calpoly.edu>2015-07-09 10:44:23 -0700
committernickago <ngonella@calpoly.edu>2015-07-09 10:44:23 -0700
commit38532013fa7e9b152d3750d73c149ff727881342 (patch)
tree29a9e422e66ece79c83c2409051499fb41756f48 /web/react/components
parentb6fb6ea3be059d3c54027267760ccca0f95535ee (diff)
downloadchat-38532013fa7e9b152d3750d73c149ff727881342.tar.gz
chat-38532013fa7e9b152d3750d73c149ff727881342.tar.bz2
chat-38532013fa7e9b152d3750d73c149ff727881342.zip
Time change ping riding on the status interupt for timestamp update
Diffstat (limited to 'web/react/components')
-rw-r--r--web/react/components/post_info.jsx9
1 files changed, 9 insertions, 0 deletions
diff --git a/web/react/components/post_info.jsx b/web/react/components/post_info.jsx
index cf01747f0..e06baee87 100644
--- a/web/react/components/post_info.jsx
+++ b/web/react/components/post_info.jsx
@@ -5,6 +5,15 @@ var UserStore = require('../stores/user_store.jsx');
var utils = require('../utils/utils.jsx');
module.exports = React.createClass({
+ componentDidMount: function() {
+ UserStore.addStatusesChangeListener(this._onChange);
+ },
+ componentWillUnmount: function() {
+ UserStore.removeStatusesChangeListener(this._onChange);
+ },
+ _onChange: function() {
+ this.forceUpdate();
+ },
getInitialState: function() {
return { };
},