summaryrefslogtreecommitdiffstats
path: root/webapp/components/user_settings
diff options
context:
space:
mode:
authorDavid Lu <david.lu@hotmail.com>2016-06-15 05:13:47 -0700
committerJoram Wilander <jwawilander@gmail.com>2016-06-15 08:13:47 -0400
commitdbcf8572e5af1c0c244850627437d97616098740 (patch)
tree6d87e79abc0322fa53cad805d3edeb7d707fec0f /webapp/components/user_settings
parentba77aefe02159325752cfa79210f5e4b5fcef77e (diff)
downloadchat-dbcf8572e5af1c0c244850627437d97616098740.tar.gz
chat-dbcf8572e5af1c0c244850627437d97616098740.tar.bz2
chat-dbcf8572e5af1c0c244850627437d97616098740.zip
Fixed @all not working as intended (#3335)
Diffstat (limited to 'webapp/components/user_settings')
-rw-r--r--webapp/components/user_settings/user_settings_notifications.jsx32
1 files changed, 0 insertions, 32 deletions
diff --git a/webapp/components/user_settings/user_settings_notifications.jsx b/webapp/components/user_settings/user_settings_notifications.jsx
index 6749180f9..1b5e78eb2 100644
--- a/webapp/components/user_settings/user_settings_notifications.jsx
+++ b/webapp/components/user_settings/user_settings_notifications.jsx
@@ -39,7 +39,6 @@ function getNotificationsStateFromStores() {
var mentionKey = false;
var customKeys = '';
var firstNameKey = false;
- var allKey = false;
var channelKey = false;
if (user.notify_props) {
@@ -67,10 +66,6 @@ function getNotificationsStateFromStores() {
firstNameKey = user.notify_props.first_name === 'true';
}
- if (user.notify_props.all) {
- allKey = user.notify_props.all === 'true';
- }
-
if (user.notify_props.channel) {
channelKey = user.notify_props.channel === 'true';
}
@@ -87,7 +82,6 @@ function getNotificationsStateFromStores() {
customKeys,
customKeysChecked: customKeys.length > 0,
firstNameKey,
- allKey,
channelKey
};
}
@@ -132,7 +126,6 @@ class NotificationsTab extends React.Component {
this.updateUsernameKey = this.updateUsernameKey.bind(this);
this.updateMentionKey = this.updateMentionKey.bind(this);
this.updateFirstNameKey = this.updateFirstNameKey.bind(this);
- this.updateAllKey = this.updateAllKey.bind(this);
this.updateChannelKey = this.updateChannelKey.bind(this);
this.updateCustomMentionKeys = this.updateCustomMentionKeys.bind(this);
this.onCustomChange = this.onCustomChange.bind(this);
@@ -228,9 +221,6 @@ class NotificationsTab extends React.Component {
updateFirstNameKey(val) {
this.setState({firstNameKey: val});
}
- updateAllKey(val) {
- this.setState({allKey: val});
- }
updateChannelKey(val) {
this.setState({channelKey: val});
}
@@ -730,7 +720,6 @@ class NotificationsTab extends React.Component {
let handleUpdateFirstNameKey;
let handleUpdateUsernameKey;
let handleUpdateMentionKey;
- let handleUpdateAllKey;
let handleUpdateChannelKey;
if (user.first_name) {
@@ -807,27 +796,6 @@ class NotificationsTab extends React.Component {
</div>
);
- handleUpdateAllKey = function handleAllKeyChange(e) {
- this.updateAllKey(e.target.checked);
- }.bind(this);
- inputs.push(
- <div key='userNotificationAllOption'>
- <div className='checkbox hidden'>
- <label>
- <input
- type='checkbox'
- checked={this.state.allKey}
- onChange={handleUpdateAllKey}
- />
- <FormattedMessage
- id='user.settings.notifications.teamWide'
- defaultMessage='Team-wide mentions "@all"'
- />
- </label>
- </div>
- </div>
- );
-
handleUpdateChannelKey = function handleChannelKeyChange(e) {
this.updateChannelKey(e.target.checked);
}.bind(this);