summaryrefslogtreecommitdiffstats
path: root/web/react/components/channel_notifications_modal.jsx
diff options
context:
space:
mode:
authorJoramWilander <jwawilander@gmail.com>2015-12-01 14:53:42 -0500
committerJoramWilander <jwawilander@gmail.com>2015-12-01 14:53:42 -0500
commitb8a1894b00fca1ef60f5e4607feab5db94677923 (patch)
tree97518db4c684c1613987cc4c453beeafdc61528e /web/react/components/channel_notifications_modal.jsx
parent362b9f2f940a242b19fe2d4d1b2e896ad12ab092 (diff)
downloadchat-b8a1894b00fca1ef60f5e4607feab5db94677923.tar.gz
chat-b8a1894b00fca1ef60f5e4607feab5db94677923.tar.bz2
chat-b8a1894b00fca1ef60f5e4607feab5db94677923.zip
Minor fix
Diffstat (limited to 'web/react/components/channel_notifications_modal.jsx')
-rw-r--r--web/react/components/channel_notifications_modal.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/react/components/channel_notifications_modal.jsx b/web/react/components/channel_notifications_modal.jsx
index bae1f13f0..887589468 100644
--- a/web/react/components/channel_notifications_modal.jsx
+++ b/web/react/components/channel_notifications_modal.jsx
@@ -33,7 +33,7 @@ export default class ChannelNotificationsModal extends React.Component {
};
}
componentWillReceiveProps(nextProps) {
- if (nextProps.show) {
+ if (!this.props.show && nextProps.show) {
this.onListenerChange();
ChannelStore.addChangeListener(this.onListenerChange);
} else {