bigbluebutton-Github/bigbluebutton-html5/server/methods/deletePrivateChatMessages.js

14 lines
368 B
JavaScript
Raw Normal View History

2016-04-20 01:43:31 +08:00
Meteor.methods({
deletePrivateChatMessages(userId, contact_id) { //TODO is this used?!
2016-04-20 01:43:31 +08:00
// 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);
}
});