fixing eslint
Этот коммит содержится в:
@@ -101,9 +101,11 @@ export default class ChannelHeader extends React.Component {
|
|||||||
let terms = '';
|
let terms = '';
|
||||||
if (user.notify_props && user.notify_props.mention_keys) {
|
if (user.notify_props && user.notify_props.mention_keys) {
|
||||||
const termKeys = UserStore.getCurrentMentionKeys();
|
const termKeys = UserStore.getCurrentMentionKeys();
|
||||||
|
|
||||||
// if (user.notify_props.all === 'true' && termKeys.indexOf('@all') !== -1) {
|
// if (user.notify_props.all === 'true' && termKeys.indexOf('@all') !== -1) {
|
||||||
// termKeys.splice(termKeys.indexOf('@all'), 1);
|
// termKeys.splice(termKeys.indexOf('@all'), 1);
|
||||||
// }
|
// }
|
||||||
|
|
||||||
if (user.notify_props.channel === 'true' && termKeys.indexOf('@channel') !== -1) {
|
if (user.notify_props.channel === 'true' && termKeys.indexOf('@channel') !== -1) {
|
||||||
termKeys.splice(termKeys.indexOf('@channel'), 1);
|
termKeys.splice(termKeys.indexOf('@channel'), 1);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -590,9 +590,11 @@ export default class NotificationsTab extends React.Component {
|
|||||||
if (this.state.mentionKey) {
|
if (this.state.mentionKey) {
|
||||||
keys.push('@' + user.username);
|
keys.push('@' + user.username);
|
||||||
}
|
}
|
||||||
|
|
||||||
// if (this.state.allKey) {
|
// if (this.state.allKey) {
|
||||||
// keys.push('@all');
|
// keys.push('@all');
|
||||||
// }
|
// }
|
||||||
|
|
||||||
if (this.state.channelKey) {
|
if (this.state.channelKey) {
|
||||||
keys.push('@channel');
|
keys.push('@channel');
|
||||||
}
|
}
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user