The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/client/views/admin/users/adminUserChannels.coffee

11 lines
324 B

Template.adminUserChannels.helpers
type: ->
return if @t is 'd' then 'at' else if @t is 'p' then 'lock' else 'hash'
route: ->
return switch @t
when 'd'
FlowRouter.path('direct', {username: @name})
when 'p'
FlowRouter.path('group', {name: @name})
when 'c'
FlowRouter.path('channel', {name: @name})