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/server/publications/room.coffee

11 lines
253 B

Meteor.publish 'room', (typeName) ->
unless this.userId
return this.ready()
if typeof typeName isnt 'string'
return this.ready()
type = typeName.substr(0, 1)
name = typeName.substr(1)
return RocketChat.roomTypes.runPublish(this, type, name)