From 702112dfb315462919d276a72be2936ad45d7ceb Mon Sep 17 00:00:00 2001
From: nickago <ngonella@calpoly.edu>
Date: Thu, 9 Jul 2015 14:11:38 -0700
Subject: Placed event listeners on higher level components to avoid app
 dispatcher vomit

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

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

diff --git a/web/react/components/sidebar_right.jsx b/web/react/components/sidebar_right.jsx
index 8334b345b..baffa0ab7 100644
--- a/web/react/components/sidebar_right.jsx
+++ b/web/react/components/sidebar_right.jsx
@@ -16,10 +16,15 @@ 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() {
+        this.forceUpdate();
     },
     _onSelectedChange: function(from_search) {
         if (this.isMounted()) {
-- 
cgit v1.2.3-1-g7c22

