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/startup/migrations/v311.ts

22 lines
441 B

import { Settings } from '@rocket.chat/models';
import { addMigration } from '../../lib/migrations';
addMigration({
version: 311,
name: 'Update default behavior of E2E_Enabled_Mentions setting, to allow mentions in encrypted messages by default.',
async up() {
// TODO: audit
await Settings.updateOne(
{
_id: 'E2E_Enabled_Mentions',
},
{
$set: {
value: true,
packageValue: true,
},
},
);
},
});