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/app/e2e/server/index.ts

21 lines
574 B

import { api } from '@rocket.chat/core-services';
import { callbacks } from '../../../lib/callbacks';
import './beforeCreateRoom';
import './methods/setUserPublicAndPrivateKeys';
import './methods/getUsersOfRoomWithoutKey';
import './methods/updateGroupKey';
import './methods/setRoomKeyID';
import './methods/fetchMyKeys';
import './methods/resetOwnE2EKey';
import './methods/requestSubscriptionKeys';
callbacks.add(
'afterJoinRoom',
(_user, room) => {
void api.broadcast('notify.e2e.keyRequest', room._id, room.e2eKeyId);
},
callbacks.priority.MEDIUM,
'e2e',
);