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/app/lib/server/functions/archiveRoom.js

11 lines
331 B

import { Meteor } from 'meteor/meteor';
import { Rooms, Subscriptions } from '../../../models';
import { callbacks } from '../../../callbacks';
export const archiveRoom = function(rid) {
Rooms.archiveById(rid);
Subscriptions.archiveByRoomId(rid);
callbacks.run('afterRoomArchived', Rooms.findOneById(rid), Meteor.user());
};