summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
author=Corey Hulen <corey@hulen.com>2015-11-23 12:14:50 -0800
committer=Corey Hulen <corey@hulen.com>2015-11-23 12:14:50 -0800
commitba0cbe723be7adcfa7b5a43e50b3932f8c7a929f (patch)
tree5b641b0746daead7852ae9a0daf373f4a623efff /web
parent6ab7df3335d414ecf864972c817e3b37b3b01abf (diff)
downloadchat-ba0cbe723be7adcfa7b5a43e50b3932f8c7a929f.tar.gz
chat-ba0cbe723be7adcfa7b5a43e50b3932f8c7a929f.tar.bz2
chat-ba0cbe723be7adcfa7b5a43e50b3932f8c7a929f.zip
Disabling the all mention
Diffstat (limited to 'web')
-rw-r--r--web/react/components/channel_header.jsx6
-rw-r--r--web/react/components/mention_list.jsx12
-rw-r--r--web/react/components/user_settings/user_settings_notifications.jsx8
-rw-r--r--web/react/utils/constants.jsx3
4 files changed, 15 insertions, 14 deletions
diff --git a/web/react/components/channel_header.jsx b/web/react/components/channel_header.jsx
index 6e12c7c14..d31477881 100644
--- a/web/react/components/channel_header.jsx
+++ b/web/react/components/channel_header.jsx
@@ -101,9 +101,9 @@ export default class ChannelHeader extends React.Component {
let terms = '';
if (user.notify_props && user.notify_props.mention_keys) {
const termKeys = UserStore.getCurrentMentionKeys();
- if (user.notify_props.all === 'true' && termKeys.indexOf('@all') !== -1) {
- termKeys.splice(termKeys.indexOf('@all'), 1);
- }
+ // if (user.notify_props.all === 'true' && termKeys.indexOf('@all') !== -1) {
+ // termKeys.splice(termKeys.indexOf('@all'), 1);
+ // }
if (user.notify_props.channel === 'true' && termKeys.indexOf('@channel') !== -1) {
termKeys.splice(termKeys.indexOf('@channel'), 1);
}
diff --git a/web/react/components/mention_list.jsx b/web/react/components/mention_list.jsx
index d1b27cf99..297d5c719 100644
--- a/web/react/components/mention_list.jsx
+++ b/web/react/components/mention_list.jsx
@@ -183,12 +183,12 @@ export default class MentionList extends React.Component {
}
}
- var all = {};
- all.username = 'all';
- all.nickname = '';
- all.secondary_text = 'Notifies everyone in the team';
- all.id = 'allmention';
- users.push(all);
+ // var all = {};
+ // all.username = 'all';
+ // all.nickname = '';
+ // all.secondary_text = 'Notifies everyone in the team';
+ // all.id = 'allmention';
+ // users.push(all);
var channel = {};
channel.username = 'channel';
diff --git a/web/react/components/user_settings/user_settings_notifications.jsx b/web/react/components/user_settings/user_settings_notifications.jsx
index e36aed395..bba69a7d4 100644
--- a/web/react/components/user_settings/user_settings_notifications.jsx
+++ b/web/react/components/user_settings/user_settings_notifications.jsx
@@ -512,7 +512,7 @@ export default class NotificationsTab extends React.Component {
}.bind(this);
inputs.push(
<div key='userNotificationAllOption'>
- <div className='checkbox'>
+ <div className='checkbox hidden'>
<label>
<input
type='checkbox'
@@ -590,9 +590,9 @@ export default class NotificationsTab extends React.Component {
if (this.state.mentionKey) {
keys.push('@' + user.username);
}
- if (this.state.allKey) {
- keys.push('@all');
- }
+ // if (this.state.allKey) {
+ // keys.push('@all');
+ // }
if (this.state.channelKey) {
keys.push('@channel');
}
diff --git a/web/react/utils/constants.jsx b/web/react/utils/constants.jsx
index 6281813e9..372e15556 100644
--- a/web/react/utils/constants.jsx
+++ b/web/react/utils/constants.jsx
@@ -68,7 +68,8 @@ export default {
TYPING: 'typing'
},
- SPECIAL_MENTIONS: ['all', 'channel'],
+ //SPECIAL_MENTIONS: ['all', 'channel'],
+ SPECIAL_MENTIONS: ['channel'],
CHARACTER_LIMIT: 4000,
IMAGE_TYPES: ['jpg', 'gif', 'bmp', 'png', 'jpeg'],
AUDIO_TYPES: ['mp3', 'wav', 'wma', 'm4a', 'flac', 'aac'],