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.js

16 lines
299 B

Meteor.publish('privateHistory', function() {
if (!this.userId) {
return this.ready();
}
return RocketChat.models.Rooms.findByContainingUsername(RocketChat.models.Users.findOneById(this.userId).username, {
fields: {
t: 1,
name: 1,
msgs: 1,
ts: 1,
lm: 1,
cl: 1
}
});
});