chore!: Update default E2EE settings behavior (#33361)
parent
d929af7b6d
commit
f3147671d7
@ -0,0 +1,5 @@ |
||||
--- |
||||
'@rocket.chat/meteor': major |
||||
--- |
||||
|
||||
Change the E2EE setting - "Access unencrypted content in encrypted rooms" default value, making the current behavior not allow to send unencrypted messages in end-to-end encrypted channels. |
||||
@ -0,0 +1,21 @@ |
||||
import { Settings } from '@rocket.chat/models'; |
||||
|
||||
import { addMigration } from '../../lib/migrations'; |
||||
|
||||
addMigration({ |
||||
version: 314, |
||||
name: 'Update default behavior of E2E_Allow_Unencrypted_Messages setting, to not allow un-encrypted messages by default.', |
||||
async up() { |
||||
await Settings.updateOne( |
||||
{ |
||||
_id: 'E2E_Allow_Unencrypted_Messages', |
||||
}, |
||||
{ |
||||
$set: { |
||||
value: false, |
||||
packageValue: false, |
||||
}, |
||||
}, |
||||
); |
||||
}, |
||||
}); |
||||
Loading…
Reference in new issue