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

13 lines
255 B

Meteor.publish 'privateHistory', ->
unless this.userId
return this.ready()
RocketChat.models.Rooms.findByContainigUsername RocketChat.models.Users.findOneById(this.userId).username,
fields:
t: 1
name: 1
msgs: 1
ts: 1
lm: 1
cl: 1