Fix @ mentions not always highlighting (#5223)

Этот коммит содержится в:
Joram Wilander
2017-01-30 10:59:00 -05:00
коммит произвёл GitHub
родитель 5b245c3a07
Коммит 63d68b3e36

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

@@ -540,6 +540,11 @@ class UserStoreClass extends EventEmitter {
keys.push('@all');
}
const usernameKey = '@' + user.username;
if (keys.indexOf(usernameKey) === -1) {
keys.push(usernameKey);
}
return keys;
}