bigbluebutton-Github/bigbluebutton-html5/server/methods/deletePrivateChatMessages.js
2016-04-27 21:04:15 +00:00

14 lines
368 B
JavaScript

Meteor.methods({
deletePrivateChatMessages(userId, contact_id) { //TODO is this used?!
// if authorized pass through
let contact, requester;
requester = Meteor.Users.findOne({
userId: userId,
});
contact = Meteor.Users.findOne({
_id: contact_id,
});
return deletePrivateChatMessages(requester.userId, contact.userId);
}
});