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/methods/removeRoom.coffee

10 lines
358 B

Meteor.methods
removeRoom: (rid) ->
fromId = Meteor.userId()
# console.log '[methods] removeRoom -> '.green, 'fromId:', fromId, 'rid:', rid
ChatRoom.update({ _id: rid}, {'$pull': { userWatching: Meteor.userId(), userIn: Meteor.userId() }})
# ChatMessage.remove({rid: rid})
# ChatRoom.remove(rid)
# @TODO remove das mensagens lidas do usuário