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/userData.coffee

19 lines
373 B

Meteor.publish 'userData', ->
unless this.userId
return this.ready()
RocketChat.models.Users.find this.userId,
fields:
name: 1
username: 1
status: 1
statusDefault: 1
statusConnection: 1
avatarOrigin: 1
utcOffset: 1
language: 1
settings: 1
defaultRoom: 1
'services.github.id': 1
'services.gitlab.id': 1
requirePasswordChange: 1