diff options
author | Joram Wilander <jwawilander@gmail.com> | 2017-01-30 10:59:00 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-30 10:59:00 -0500 |
commit | 63d68b3e36c2deaaeb7174edc1950fab3752d887 (patch) | |
tree | 307eae56a9464437c159aaf64d0ea51db29a4020 /webapp | |
parent | 5b245c3a0768d28c0351a24cfb273469357cc2be (diff) | |
download | chat-63d68b3e36c2deaaeb7174edc1950fab3752d887.tar.gz chat-63d68b3e36c2deaaeb7174edc1950fab3752d887.tar.bz2 chat-63d68b3e36c2deaaeb7174edc1950fab3752d887.zip |
Fix @ mentions not always highlighting (#5223)
Diffstat (limited to 'webapp')
-rw-r--r-- | webapp/stores/user_store.jsx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/webapp/stores/user_store.jsx b/webapp/stores/user_store.jsx index fb1e36590..bcc59b690 100644 --- a/webapp/stores/user_store.jsx +++ b/webapp/stores/user_store.jsx @@ -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; } |