feat: encryption_disabled config option
Can be used with ROCKET_ENCRYPTION_DISABLED=true
This commit is contained in:
parent
5a8705bd25
commit
dc5fb7e33a
4 changed files with 18 additions and 0 deletions
|
@ -1341,6 +1341,11 @@ pub fn create_room_route(
|
|||
content,
|
||||
} in &body.initial_state
|
||||
{
|
||||
// Silently skip encryption events if they are not allowed
|
||||
if event_type == &EventType::RoomEncryption && db.globals.encryption_disabled() {
|
||||
continue
|
||||
}
|
||||
|
||||
db.rooms.append_pdu(
|
||||
room_id.clone(),
|
||||
user_id.clone(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue