apps/meteor/app/e2e/server/beforeCreateRoom.ts
Consider simplifying this complex logical expression. Open
Open
if (
settings.get<boolean>('E2E_Enable') &&
((type === 'd' && settings.get<boolean>('E2E_Enabled_Default_DirectRooms')) ||
(type === 'p' && settings.get<boolean>('E2E_Enabled_Default_PrivateRooms')))
) {