diff options
Diffstat (limited to 'webapp/components')
-rw-r--r-- | webapp/components/suggestion/at_mention_provider.jsx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/webapp/components/suggestion/at_mention_provider.jsx b/webapp/components/suggestion/at_mention_provider.jsx index b33662420..b9127e8d3 100644 --- a/webapp/components/suggestion/at_mention_provider.jsx +++ b/webapp/components/suggestion/at_mention_provider.jsx @@ -43,6 +43,15 @@ class AtMentionSuggestion extends Suggestion { /> ); icon = <i className='mention__image fa fa-users fa-2x'/>; + } else if (user.username === 'here') { + username = 'here'; + description = ( + <FormattedMessage + id='suggestion.mention.here' + defaultMessage='Notifies everyone in the channel and online' + /> + ); + icon = <i className='mention__image fa fa-users fa-2x'/>; } else { username = user.username; @@ -126,6 +135,9 @@ export default class AtMentionProvider { if ('all'.startsWith(prefix)) { filtered.push({username: 'all'}); } + if ('here'.startsWith(prefix)) { + filtered.push({username: 'here'}); + } } filtered.sort((a, b) => { |