Этот коммит содержится в:
=Corey Hulen
2015-11-23 12:14:50 -08:00
родитель 6ab7df3335
Коммит ba0cbe723b
6 изменённых файлов: 19 добавлений и 18 удалений

Просмотреть файл

@@ -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);
}

Просмотреть файл

@@ -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';

Просмотреть файл

@@ -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');
}

Просмотреть файл

@@ -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'],