Removed @all mention suggestion (#2845)

Этот коммит содержится в:
Harrison Healey
2016-05-02 12:50:17 -04:00
коммит произвёл Christopher Speller
родитель 7e414c89b4
Коммит 6f1489b788

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

@@ -101,13 +101,8 @@ export default class AtMentionProvider {
} }
} }
//Don't imply that @all and @channel can be direct messaged
if (!pretext.startsWith('/msg')) { if (!pretext.startsWith('/msg')) {
// add dummy users to represent the @all and @channel special mentions // add dummy users to represent the @channel special mention when not using the /msg command
if ('all'.startsWith(usernamePrefix)) {
filtered.push({username: 'all'});
}
if ('channel'.startsWith(usernamePrefix)) { if ('channel'.startsWith(usernamePrefix)) {
filtered.push({username: 'channel'}); filtered.push({username: 'channel'});
} }