Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kashif-umair opened this issue Mar 18, 2024 · 0 comments
Open

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

kashif-umair opened this issue Mar 18, 2024 · 0 comments
Labels
T-Defect Something isn't working: bugs, crashes, hangs and other reported problems

Comments

@kashif-umair
Copy link

Steps to reproduce

The client well-known looks like this

{
  "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:

formSwitchItem {
id("encryption")
enabled(enableFormElement)
title(host.stringProvider.getString(R.string.create_room_encryption_title))
summary(
if (viewState.hsAdminHasDisabledE2E) {
host.stringProvider.getString(R.string.settings_hs_admin_e2e_disabled)
} else {
host.stringProvider.getString(R.string.create_room_encryption_description)
}
)
switchChecked(viewState.isEncrypted ?: viewState.defaultEncrypted[viewState.roomJoinRules].orFalse())
listener { value ->
host.listener?.setIsEncrypted(value)
}

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

@kashif-umair kashif-umair added the T-Defect Something isn't working: bugs, crashes, hangs and other reported problems label Mar 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-Defect Something isn't working: bugs, crashes, hangs and other reported problems
Projects
None yet
Development

No branches or pull requests

1 participant