summaryrefslogtreecommitdiffstats
path: root/webapp/components
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2016-05-02 14:07:22 -0400
committerCorey Hulen <corey@hulen.com>2016-05-02 11:07:22 -0700
commitddc888d264dee67504d2242f1cf705fb62ed3b22 (patch)
treeded8ee2ceb67e3c78d7d18b070f276eb6ee73c8c /webapp/components
parentf8ed606a5ff4e1c4bc71514b5604de0cbaa09feb (diff)
downloadchat-ddc888d264dee67504d2242f1cf705fb62ed3b22.tar.gz
chat-ddc888d264dee67504d2242f1cf705fb62ed3b22.tar.bz2
chat-ddc888d264dee67504d2242f1cf705fb62ed3b22.zip
Copying profiles on posts_view so we can detect new users (#2847)
Diffstat (limited to 'webapp/components')
-rw-r--r--webapp/components/posts_view.jsx2
1 files changed, 1 insertions, 1 deletions
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