mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Fix @ mentions not always highlighting (#5223)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user