From ddc888d264dee67504d2242f1cf705fb62ed3b22 Mon Sep 17 00:00:00 2001
From: Christopher Speller <crspeller@gmail.com>
Date: Mon, 2 May 2016 14:07:22 -0400
Subject: Copying profiles on posts_view so we can detect new users (#2847)

---
 webapp/components/posts_view.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'webapp/components/posts_view.jsx')

diff --git a/webapp/components/posts_view.jsx b/webapp/components/posts_view.jsx
index 7c1f13fca..fc36e3261 100644
--- a/webapp/components/posts_view.jsx
+++ b/webapp/components/posts_view.jsx
@@ -77,7 +77,7 @@ export default class PostsView extends React.Component {
         });
     }
     onUserChange() {
-        this.setState({currentUser: UserStore.getCurrentUser(), profiles: UserStore.getProfiles()});
+        this.setState({currentUser: UserStore.getCurrentUser(), profiles: JSON.parse(JSON.stringify(UserStore.getProfiles()))});
     }
     isAtBottom() {
         // consider the view to be at the bottom if it's within this many pixels of the bottom
-- 
cgit v1.2.3-1-g7c22

