Skip to content

Ensure that Element X can use the service from Element Classic.#6238

Merged
bmarty merged 3 commits intodevelopfrom
feature/bma/importFromClassic
Feb 24, 2026
Merged

Ensure that Element X can use the service from Element Classic.#6238
bmarty merged 3 commits intodevelopfrom
feature/bma/importFromClassic

Conversation

@bmarty
Copy link
Member

@bmarty bmarty commented Feb 23, 2026

Content

Ensure that Element X can use the service from Element Classic.
Permission "im.vector.app.READ_DATA" is not necessary anymore, but the manifest must contain a package tag in the queries block.

Also iterate on the expected received secrets.

The flow is not fully working yet, this is an intermediate PR.

Motivation and context

Part of #6143

Screenshots / GIFs

NA

Tests

No expected change if the flag to sign in with Element Classic is disabled (which is the default behavior).

Tested devices

  • Physical
  • Emulator
  • OS version(s):

Checklist

  • Changes have been tested on an Android device or Android emulator with API 24
  • UI change has been tested on both light and dark themes
  • Accessibility has been taken into account. See https://github.com/element-hq/element-x-android/blob/develop/CONTRIBUTING.md#accessibility
  • Pull request is based on the develop branch
  • Pull request title will be used in the release note, it clearly define what will change for the user
  • Pull request includes screenshots or videos if containing UI changes
  • You've made a self review of your PR

Permission "im.vector.app.READ_DATA" is not necessary anymore.
@bmarty bmarty requested a review from a team as a code owner February 23, 2026 12:45
@bmarty bmarty requested review from jmartinesp and removed request for a team February 23, 2026 12:45
@bmarty bmarty added the PR-Wip For anything that isn't ready to ship and will be enabled at a later date label Feb 23, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Feb 23, 2026

📱 Scan the QR code below to install the build (arm64 only) for this PR.
QR code
If you can't scan the QR code you can install the build via this link: https://i.diawi.com/r3SdDs

@sonarqubecloud
Copy link

@ElementBot
Copy link
Collaborator

Warnings
⚠️

features/login/impl/src/main/kotlin/io/element/android/features/login/impl/screens/onboarding/classic/ElementClassicConnection.kt#L165 - This Handler class should be static or leaks might occur (io.element.android.features.login.impl.screens.onboarding.classic.DefaultElementClassicConnection.IncomingHandler)

Generated by 🚫 dangerJS against 1e8bbed

Copy link
Member

@jmartinesp jmartinesp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but it seems like there are some failing CI flows.

@bmarty bmarty enabled auto-merge February 24, 2026 14:22
@bmarty bmarty merged commit c91c781 into develop Feb 24, 2026
29 of 31 checks passed
@bmarty bmarty deleted the feature/bma/importFromClassic branch February 24, 2026 14:58
@codecov
Copy link

codecov bot commented Feb 24, 2026

Codecov Report

❌ Patch coverage is 27.27273% with 8 lines in your changes missing coverage. Please review.
✅ Project coverage is 81.43%. Comparing base (efb2098) to head (1e8bbed).
⚠️ Report is 22 commits behind head on develop.

Files with missing lines Patch % Lines
...ens/onboarding/classic/ElementClassicConnection.kt 27.27% 8 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #6238   +/-   ##
========================================
  Coverage    81.42%   81.43%           
========================================
  Files         2570     2570           
  Lines        69788    69785    -3     
  Branches      8950     8951    +1     
========================================
+ Hits         56825    56827    +2     
+ Misses        9643     9638    -5     
  Partials      3320     3320           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR-Wip For anything that isn't ready to ship and will be enabled at a later date

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants