Skip to content

Commit

Permalink
Added completion for new @ALL mentions
Browse files Browse the repository at this point in the history
  • Loading branch information
Caleb Meyer committed Dec 4, 2015
1 parent 103645d commit 7530fb6
Showing 1 changed file with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,30 @@ Template.messagePopupConfig.helpers
system: true
name: t 'Notify_all_in_this_room'
compatibility: 'channel group'
channel =
_id: '@channel'
username: 'channel'
system: true
name: t 'Notify_all_in_this_room'
compatibility: 'channel group'
everyone =
_id: '@everyone'
username: 'everyone'
system: true
name: t 'Notify_all_in_this_room'
compatibility: 'channel group'
here =
_id: '@here'
username: 'here'
system: true
name: t 'Notify_all_in_this_room'
compatibility: 'channel group'
yall =
_id: '@yall'
username: 'yall'
system: true
name: t 'Notify_all_in_this_room'
compatibility: 'channel group'

exp = new RegExp("(^|\\s)#{RegExp.escape filter}", 'i')
if exp.test(all.username) or exp.test(all.compatibility)
Expand Down

0 comments on commit 7530fb6

Please sign in to comment.