Commit graph

13030 commits

Author SHA1 Message Date
Jorge Martín
0b291ce202 Fix toPlainText representation with formatting spans 2025-12-19 16:15:51 +01:00
Benoit Marty
19e349ac89 Remove empty line. 2025-12-19 15:53:43 +01:00
renovate[bot]
4e11c69e7b
fix(deps): update dependency org.maplibre.gl:android-sdk to v12.3.1 (#5883)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-19 15:39:17 +01:00
renovate[bot]
c1c1b49c18
Update GitHub Artifact Actions (#5932)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-19 15:38:26 +01:00
renovate[bot]
e863fa69c3
fix(deps): update dependency androidx.webkit:webkit to v1.15.0 (#5925)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-19 15:38:08 +01:00
Benoit Marty
2a9765ad33
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
9ad69a0af7
Merge pull request #5936 from kaylendog/kaylendog/history-sharing/algorithm
Show history visibility banner strictly for `shared` rooms instead of `invited`.
2025-12-19 15:14:36 +01:00
ElementBot
55f1c91e35 Update screenshots 2025-12-19 14:08:00 +00:00
Benoit Marty
beea921f2e Simplify the copy of the history visibility settings
Closes #5898
2025-12-19 14:53:06 +01:00
renovate[bot]
07671dbd72
fix(deps): update dependency com.google.zxing:core to v3.5.4 (#5935)
* fix(deps): update dependency com.google.zxing:core to v3.5.4

* We are not targetting API 24+ so it should be fine to use the last version

* Update screenshots

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Benoit Marty <benoitm@element.io>
Co-authored-by: ElementBot <android@element.io>
2025-12-19 14:15:55 +01:00
renovate[bot]
f785e53315
fix(deps): update dependency io.nlopez.compose.rules:detekt to v0.5.3 (#5939)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-19 13:13:54 +01:00
Jorge Martin Espinosa
4f1fd33b47
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
Benoit Marty
c04b7f234d Sync strings. 2025-12-19 12:46:39 +01:00
Skye Elliot
42277cf604
docs: Clarify purpose of LaunchedEffect as part of algorithm. 2025-12-19 11:09:19 +00:00
Jorge Martin Espinosa
105bab1758
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]
1d0b493869
fix(deps): update metro to v0.9.2 (#5940)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-19 09:18:02 +00:00
Benoit Marty
ac7321f841 Add exceptions. 2025-12-19 09:44:58 +01:00
renovate[bot]
7cc495dfc4
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
4aadbed0b1 Fix test issue: "java.security.KeyStoreException: AndroidKeyStore not found" 2025-12-19 09:27:11 +01:00
ganfra
cff97d0c4f quality: fix tests after changes 2025-12-18 21:45:49 +01:00
ganfra
e981e61267 change(room permissions): fix some role&permissions inconsistencies after last changes 2025-12-18 21:37:56 +01:00
ganfra
b1f5499ad9 change(member moderation): fix available moderation actions 2025-12-18 21:36:55 +01:00
Skye Elliot
e9831d0e05
fix: Show history visibiliy banner for shared, not invited. 2025-12-18 16:05:22 +00:00
Benoit Marty
3ea10c2c62
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
798132f676 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
Benoit Marty
229e9f9bc4 Reset the handlers when coming back from ShowQrCode screen. 2025-12-18 15:07:08 +01:00
Benoit Marty
92e417a9ba Reset the handlers when starting over after an error. 2025-12-18 15:06:44 +01:00
Benoit Marty
090292a324 Rename vars. 2025-12-18 14:48:23 +01:00
renovate[bot]
8948c2ed6f
chore(deps): update plugin sonarqube to v7.2.2.6593 (#5927)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-18 14:23:21 +01:00
Jorge Martín
20eebea077 Remove comment that was no longer valid 2025-12-18 14:08:38 +01:00
Jorge Martín
fba32a2938 Fix wrong variable being used, improve tests 2025-12-18 14:08:38 +01:00
Jorge Martín
7864066f9a Make sure we don't upload any user ids in tags either 2025-12-18 14:08:38 +01:00
Jorge Martín
425a694564 Add more tests to SentryAnalyticsProviderTest 2025-12-18 14:08:38 +01:00
Jorge Martín
35a0da506f Check computeCacheSize function in DeveloperSettingsPresenterTest 2025-12-18 14:08:38 +01:00
Jorge Martín
480376ef9b 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
2590659637 Add tests for RustMatrixClient.getDatabaseSizes() 2025-12-18 14:08:38 +01:00
Jorge Martín
2cc18fa735 Add tests for SentryAnalyticsProvider 2025-12-18 14:08:38 +01:00
Jorge Martín
d851f91287 Try fixing UI test (it works locally) 2025-12-18 14:08:38 +01:00
Jorge Martín
8798f362c1 Fix test 2025-12-18 14:08:38 +01:00
Jorge Martín
fe9224b807 Distinguish between indexable and non-indexable extra data 2025-12-18 14:08:38 +01:00
Jorge Martín
fa8d7b73c7 Fix tests 2025-12-18 14:08:38 +01:00
Jorge Martín
a91dac6cac Add a new entry in the developer settings to check the store sizes 2025-12-18 14:08:38 +01:00
Jorge Martín
c864fbac8c Add extra code to make sure we can't upload a session/user id as an extra by mistake 2025-12-18 14:08:38 +01:00
Jorge Martín
c9b904e606 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
e18a5ef17f 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
6441153dba 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
a7eb46ed45 Add MatrixClient.getDatabaseSizes
This returns a `SdkStoreSizes` object, with the possible SDK database sizes.
2025-12-18 14:08:38 +01:00
Jorge Martín
8d0cc3fd41 Add AnalyticsUserData, with keys for several extras we want to upload to Sentry.
Add the `HOMESERVER` extra, with a hashed homeserver value. This is only so we can identify devices using a problematic HS (like matrix.org under heavy load).
2025-12-18 14:08:38 +01:00
Jorge Martín
5ca108c526 Create addUserData method in the analytics providers
This allows us to globally add arbitrary data to the events and transactions
2025-12-18 14:08:38 +01:00
renovate[bot]
d1fd3020a0
fix(deps): update activity to v1.12.2 (#5924)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-18 11:21:39 +00:00