2016-04-20 01:43:31 +08:00
|
|
|
Meteor.methods({
|
2016-04-28 05:04:15 +08:00
|
|
|
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);
|
|
|
|
}
|
|
|
|
});
|