Fix @ mentions not always highlighting (#5223)

This commit is contained in:
Joram Wilander
2017-01-30 10:59:00 -05:00
committed by GitHub
parent 5b245c3a07
commit 63d68b3e36

View File

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