From 38532013fa7e9b152d3750d73c149ff727881342 Mon Sep 17 00:00:00 2001
From: nickago <ngonella@calpoly.edu>
Date: Thu, 9 Jul 2015 10:44:23 -0700
Subject: Time change ping riding on the status interupt for timestamp update

---
 web/react/components/post_info.jsx | 9 +++++++++
 1 file changed, 9 insertions(+)

(limited to 'web/react/components/post_info.jsx')

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 { };
     },
-- 
cgit v1.2.3-1-g7c22

