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/startup/defaultRoomTypes.coffee

15 lines
529 B

Meteor.startup ->
roles = ['admin', 'moderator', 'user']
RocketChat.roomTypes.addType('starredRooms', roles);
RocketChat.roomTypes.addType('channels', roles);
RocketChat.roomTypes.addType('directMessages', roles);
RocketChat.roomTypes.addType('privateGroups', roles);
RocketChat.roomTypes.setRoute 'c', 'channel', (sub) ->
return { name: sub.name }
RocketChat.roomTypes.setRoute 'd', 'direct', (sub) ->
return { username: sub.name }
RocketChat.roomTypes.setRoute 'p', 'group', (sub) ->
return { name: sub.name }