Skip to content
Snippets Groups Projects
Commit 9ef9607e authored by Diego Sampaio's avatar Diego Sampaio
Browse files

roomTypes NEEDS to be declared before startup

parent 14b502de
No related branches found
No related tags found
No related merge requests found
Meteor.startup ->
RocketChat.roomTypes.add 'starred',
template: 'starredRooms'
icon: 'icon-star'
RocketChat.roomTypes.add 'starred',
template: 'starredRooms'
icon: 'icon-star'
RocketChat.roomTypes.add 'c',
template: 'channels'
icon: 'icon-hash'
route:
name: 'channel'
path: '/channel/:name'
action: (params, queryParams) ->
Session.set 'showUserInfo'
openRoom 'c', params.name
link: (sub) ->
return { name: sub.name }
permissions: [ 'view-c-room' ]
RocketChat.roomTypes.add 'c',
template: 'channels'
icon: 'icon-hash'
route:
name: 'channel'
path: '/channel/:name'
action: (params, queryParams) ->
Session.set 'showUserInfo'
openRoom 'c', params.name
link: (sub) ->
return { name: sub.name }
permissions: [ 'view-c-room' ]
RocketChat.roomTypes.add 'd',
template: 'directMessages'
icon: 'icon-at'
route:
name: 'direct'
path: '/direct/:username'
action: (params, queryParams) ->
Session.set 'showUserInfo'
openRoom 'd', params.name
link: (sub) ->
return { username: sub.name }
permissions: [ 'view-d-room' ]
RocketChat.roomTypes.add 'd',
template: 'directMessages'
icon: 'icon-at'
route:
name: 'direct'
path: '/direct/:username'
action: (params, queryParams) ->
Session.set 'showUserInfo'
openRoom 'd', params.username
link: (sub) ->
return { username: sub.name }
permissions: [ 'view-d-room' ]
RocketChat.roomTypes.add 'p',
template: 'privateGroups'
icon: 'icon-lock'
route:
name: 'group'
path: '/group/:name'
action: (params, queryParams) ->
Session.set 'showUserInfo'
openRoom 'p', params.name
link: (sub) ->
return { name: sub.name }
permissions: [ 'view-p-room' ]
RocketChat.roomTypes.add 'p',
template: 'privateGroups'
icon: 'icon-lock'
route:
name: 'group'
path: '/group/:name'
action: (params, queryParams) ->
Session.set 'showUserInfo'
openRoom 'p', params.name
link: (sub) ->
return { name: sub.name }
permissions: [ 'view-p-room' ]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment