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/apps/meteor/server/lib/callbacks/beforeCreateRoomCallback.ts

9 lines
411 B

import type { IRoom, IUser } from '@rocket.chat/core-typings';
import { Callbacks } from './callbacksBase';
export const beforeCreateRoomCallback =
Callbacks.create<(data: { owner: IUser; room: Omit<IRoom, '_id' | '_updatedAt'> }) => void>('beforeCreateRoom');
export const prepareCreateRoomCallback =
Callbacks.create<(data: { type: IRoom['t']; extraData: Partial<IRoom> }) => void>('prepareCreateRoom');