element-hq / element-hq/element-android

io.element.e2ee['force_disable'] not respected

Open
#8,784 1 comment 2 reactions 0 assignees View on GitHub
T-Defect
Dominant language
Kotlin
Stars
3.7k
Forks
917
PR merge metrics
No merged PRs in 30d

Description

### Steps to reproduce

The client well-known looks like this
```json
{
"io.element.e2ee": {
"default": false,
"force_disable": true
},
"m.homeserver": {
"base_url": "https://chat.the-revivalists.org/"
}
}
```

According to that, the client should forcefully disable any encryption related settings. It works perfectly on element web but the Android app doesn't respect this setting.

I believe the issue is around this code. I don't see anything related to forcefully disabling encryption: https://github.com/element-hq/element-android/blob/4231b32cc2324c7193c9cec54ffb4ed49004100c/vector/src/main/java/im/vector/app/features/roomdirectory/createroom/CreateRoomController.kt#L162-L178

### Outcome

#### What did you expect?
The switch toggle should be disabled and it should not be possible to enable it.

#### What happened instead?
The switch toggle was active and I was able to enable the encryption while creating a room.

### Your phone model

Realme X3 Superzoom

### Operating system version

Android 12

### Application version and app store

Element version 1.6.12, from Google Play

### Homeserver

Synapse 1.102.0

### Will you send logs?

Yes

### Are you willing to provide a PR?

No

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.