Commit Graph

4836 Commits

Author SHA1 Message Date
Benoit Marty
6c0caab132 Use existing preview. 2025-12-21 11:33:07 +01:00
Benoit Marty
8d2a683fbc Add preview for ElementTheme.typography values. 2025-12-20 18:23:50 +01:00
Benoit Marty
d92ac247c1 Remove materialTypography val from ElementTheme.
We should only use `typography`.
2025-12-20 17:03:19 +01:00
Benoit Marty
4402585a52 Use typography instead of materialTypography. 2025-12-20 17:03:18 +01:00
Benoit Marty
650f041ae6 Merge pull request #5942 from element-hq/feature/bma/roomHistoryVisibilitySettings
Simplify the copy of the history visibility settings
2025-12-20 17:02:24 +01:00
Benoit Marty
1571b6e719 Upgrade robolectric to version 4.16 (#5923)
* Update dependency org.robolectric:robolectric to v4.16

* Fix file size formatter output on API 26+

* Use more realistic value for maxUploadSize

* Update screenshots

* Fix test issue: "java.security.KeyStoreException: AndroidKeyStore not found"

* Add exceptions.

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: ElementBot <android@element.io>
2025-12-19 15:37:38 +01:00
Benoit Marty
d04ebe880b Simplify the copy of the history visibility settings
Closes #5898
2025-12-19 14:53:06 +01:00
Jorge Martin Espinosa
83eae74488 Fix unverified account after account creation (#5914)
* Fix unverified account after account creation:

When we create an account either using OIDC or by importing a login and password one, we need to wait until the verification state is known (either verified or unverified).

The problem is the verification service will return incorrect values until the E2EE tasks are initialized in the SDK, even if we add the state listeners after doing so.

So what we can do is initialize the E2EE setup, discard any invalid verification state received while it's not initialized, and take only those received after it's initialized.

* Actually restore the `Client` in `RustMatrixAuthenticationService.importCreatedSession` so we don't need to use `clear` and have the navigation restore the client later:

This standarizes the way the login/registration flow works, always restoring/reusing the existing client instance
2025-12-19 12:55:34 +01:00
Jorge Martin Espinosa
0b5c4fc8bb Add threadInfo field to message like timeline events (#5930)
* Add `threadInfo` field to message like timeline events:
- Polls
- Stickers
- UTDs

* Add missing cases for `EventTimeline.threadInfo()`
2025-12-19 09:43:40 +00:00
renovate[bot]
dd4537ae4c fix(deps): update media3 to v1.9.0 (#5931)
* Update media3 to v1.9.0

* Fix compilation issue.

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Benoit Marty <benoit@matrix.org>
2025-12-19 09:39:35 +01:00
Benoit Marty
bd46ce9775 Fix test issue: "java.security.KeyStoreException: AndroidKeyStore not found" 2025-12-19 09:27:11 +01:00
Benoit Marty
65c17eacc6 Merge pull request #5909 from element-hq/feature/bma/qrCodeLogin
Link new device using QrCode - First version
2025-12-18 16:08:21 +01:00
Benoit Marty
999eca42d7 Remove translations
Translations are not located in the current module. They will be imported in the correct module once the current PR with the Localazy config has been merged.
2025-12-18 15:33:08 +01:00
Jorge Martín
37d81fd4d1 Remove comment that was no longer valid 2025-12-18 14:08:38 +01:00
Jorge Martín
b5d6843725 Inject SentryDsn the same way we do with SentrySdkDsn so we can fake it for tests 2025-12-18 14:08:38 +01:00
Jorge Martín
de694cecdb Add tests for RustMatrixClient.getDatabaseSizes() 2025-12-18 14:08:38 +01:00
Jorge Martín
5c6fee08fd Fix tests 2025-12-18 14:08:38 +01:00
Jorge Martín
a4b908bc18 Integrate the new use case with Sentry
We'll upload the store sizes as different fields so we can later use them to filter transaction/issues
2025-12-18 14:08:38 +01:00
Jorge Martín
b064b35c93 Create GetDatabaseSizesUseCase so we don't have to expose the while MatrixClient to get these values 2025-12-18 14:08:38 +01:00
Jorge Martín
b4d2f322ad Rename ByteSize.to to ByteSize.into
This method could clash the the `a to b` operator.
2025-12-18 14:08:38 +01:00
Jorge Martín
dc0b508b08 Add MatrixClient.getDatabaseSizes
This returns a `SdkStoreSizes` object, with the possible SDK database sizes.
2025-12-18 14:08:38 +01:00
Benoit Marty
9e00ca323d Fix file size formatter output on API 26+ 2025-12-18 11:18:25 +01:00
renovate[bot]
10b85ec1ff fix(deps): update dependency org.matrix.rustcomponents:sdk-android to v25.12.17 (#5912)
* fix(deps): update dependency org.matrix.rustcomponents:sdk-android to v25.12.17

* Fix changes in the SDK:

`LatestEventValue.Local` doesn't have an `isSending` property anymore, now it has `state: LatestEventValueLocalState`. If this is `HAS_BEEN_SENT`, it's equivalent to a `LatestEventValue.Remote`, we just haven't received the updated value from the SDK yet.
---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jorge Martín <jorgem@element.io>
2025-12-17 15:08:41 +00:00
ElementBot
9e23d9f451 Update screenshots 2025-12-17 11:26:22 +00:00
Benoit Marty
095801af89 Icon Backspace and BackspaceSolid must be auto-mirrored. 2025-12-17 12:03:04 +01:00
Benoit Marty
538a309a1a Import Compound tokens from release v6.4.3
https://github.com/element-hq/compound-design-tokens/releases/tag/v6.4.3
2025-12-17 11:59:16 +01:00
Benoit Marty
90d71f5e66 Fix issue detected by lint. 2025-12-17 10:59:48 +01:00
Benoit Marty
b6991c05cb Fix colors again 2025-12-17 08:33:16 +01:00
Benoit Marty
fe78c70625 Make sure preview contains the two themes. 2025-12-17 08:33:16 +01:00
Benoit Marty
868108d725 Fix SearchBar colors.
Ref: https://www.figma.com/design/G1xy0HDZKJf5TCRFmKb5d5/Compound-Android-Components?node-id=1992-8350
2025-12-17 08:33:15 +01:00
Benoit Marty
0fde8a9b59 Fix compilation errors and warnings. 2025-12-17 08:33:14 +01:00
ganfra
8266902ec2 Merge pull request #5908 from element-hq/feature/fga/space_settings_iteration
Change : space settings iteration
2025-12-16 22:41:03 +01:00
ganfra
f8824e1ce1 quality: add missing doc 2025-12-16 20:34:33 +01:00
ganfra
10b61df11b quality: fix tests after latest changes 2025-12-16 20:34:26 +01:00
Benoit Marty
086229f5dc Add test on RustCheckCodeSender 2025-12-16 20:03:33 +01:00
Benoit Marty
b5fdc179c7 Add unit test on RustLinkDesktopHandler
Add unit test on RustLinkMobileHandler
Add unit test on DefaultLinkNewDeviceEntryPoint
2025-12-16 18:37:33 +01:00
Jorge Martin Espinosa
d298200934 Use the right video preset when sharing videos (#5892) 2025-12-16 16:40:44 +01:00
Benoit Marty
fd446e98dd Link new device using QrCode. 2025-12-16 16:14:04 +01:00
Benoit Marty
028741d81c Format files. 2025-12-16 16:13:25 +01:00
ganfra
d80ebe4de0 quality: fix translation warning 2025-12-16 11:32:16 +01:00
ganfra
1300e7723c Merge branch 'develop' into feature/fga/space_settings_iteration 2025-12-16 11:02:29 +01:00
ElementBot
6880cf518c Sync Strings from Localazy (#5904)
Co-authored-by: bmarty <3940906+bmarty@users.noreply.github.com>
2025-12-15 23:51:19 +01:00
ganfra
a21b66b862 change(space) : last admin navigate to security&privacy 2025-12-15 20:46:23 +01:00
ganfra
591eac83bd Merge branch 'develop' into feature/fga/space_settings_iteration 2025-12-15 16:06:06 +01:00
ganfra
5bb71db3b1 Merge pull request #5879 from element-hq/feature/fga/room_permissions_rework
misc : rework power levels apis
2025-12-15 12:19:54 +01:00
ganfra
d85fca97b5 Merge pull request #5900 from element-hq/feature/fga/update_invite_selection_design
Design : update user rows
2025-12-15 10:33:57 +01:00
Jorge Martin Espinosa
aaf788b448 Fix crash when calling Room.predecessorRoom when the room is destroyed (#5894)
* Fix crash when calling `Client.predecessorRoom` when the room is destroyed

* Handle the root cause of this crash: destroying the room on activity recreation
2025-12-15 10:25:08 +01:00
ganfra
fc0f1af52e design: update vertical padding of the UserRow 2025-12-12 17:46:56 +01:00
ganfra
e7cfe1d456 design: CheckableUserRow uses Checkbox 2025-12-12 17:44:21 +01:00
Benoit Marty
b03b6b3da8 Merge pull request #5891 from element-hq/feature/bma/qrCodeScannerCleanup
Qr code scanner cleanup
2025-12-12 17:24:01 +01:00