summaryrefslogtreecommitdiffstats
path: root/webapp/components/posts_view.jsx
diff options
context:
space:
mode:
authorHarrison Healey <harrisonmhealey@gmail.com>2016-03-31 10:33:00 -0400
committerHarrison Healey <harrisonmhealey@gmail.com>2016-03-31 10:33:00 -0400
commit803b58c2d41f74b852f6247472d415e1d7103108 (patch)
tree4aaede82fbfd0c328a228860a1ca41e3140d1219 /webapp/components/posts_view.jsx
parentc8b2af62468c5d0906ba08d3e2a378681f99eb08 (diff)
downloadchat-803b58c2d41f74b852f6247472d415e1d7103108.tar.gz
chat-803b58c2d41f74b852f6247472d415e1d7103108.tar.bz2
chat-803b58c2d41f74b852f6247472d415e1d7103108.zip
Fixed PostsView not unregistering it's PreferenceStore listener when unmounting
Diffstat (limited to 'webapp/components/posts_view.jsx')
-rw-r--r--webapp/components/posts_view.jsx1
1 files changed, 1 insertions, 0 deletions
diff --git a/webapp/components/posts_view.jsx b/webapp/components/posts_view.jsx
index 647c7f086..adeef5abc 100644
--- a/webapp/components/posts_view.jsx
+++ b/webapp/components/posts_view.jsx
@@ -385,6 +385,7 @@ export default class PostsView extends React.Component {
componentWillUnmount() {
window.removeEventListener('resize', this.handleResize);
this.scrollStopAction.cancel();
+ PreferenceStore.removeChangeListener(this.updateState);
}
componentDidUpdate() {
if (this.props.postList != null) {