Commit Graph

12558 Commits

Author SHA1 Message Date
Benoit Marty
b976d9deac Fix and add test 2025-11-19 17:38:11 +01:00
Benoit Marty
e0c829d887 First attempt 2025-11-19 16:56:01 +01:00
Benoit Marty
a9d04b7384 Merge pull request #5764 from element-hq/feature/bma/fixDefaultHtmlConverterProviderCrash
Fix crash when viewing Pinned events
2025-11-19 15:36:46 +01:00
Benoit Marty
2861d1cf8e Ensure that htmlConverterProvider is initialized when viewing Pinned events. Fixes #5763 2025-11-19 14:37:19 +01:00
Jorge Martin Espinosa
c6c2f4a267 Add some performance metrics for Sentry (#5760)
- Add `AnalyticsService.startTransaction(...)` to start a logging transaction that can be uploaded to Sentry if the user enabled the analytics upload.
- Add `AnalyticsTransaction` wrapper to abstract the Sentry ones.
- Added several helper methods to improve the UX around these transactions.
- Then measure:
  - Time until the first sync, and how it ended.
  - Time until the first rooms are displayed.
  - Time to load a room or a preview.
  - Time to load a timeline.
2025-11-19 11:42:55 +00:00
Benoit Marty
de3ffca1af Merge pull request #5738 from element-hq/renovate/ktlint
fix(deps): update dependency com.pinterest.ktlint:ktlint-cli to v1.8.0
2025-11-19 12:16:05 +01:00
Benoit Marty
d5b592253f Merge pull request #5757 from element-hq/renovate/okhttp-monorepo
Update dependency com.squareup.okhttp3:okhttp-bom to v5.3.2
2025-11-19 11:57:57 +01:00
Benoit Marty
bbf6529c1e Merge pull request #5758 from element-hq/feature/bma/fixNPE
Fix null pointer exception on room notification settings.
2025-11-19 11:05:05 +01:00
Benoit Marty
d8cacba43a Improve API: use RoomId instead of String. 2025-11-19 10:14:03 +01:00
Benoit Marty
88f0111137 Ensure in test that rooms are sorted. 2025-11-19 10:14:03 +01:00
Benoit Marty
a64fe57ec6 Use test extension 2025-11-19 10:14:03 +01:00
Benoit Marty
dc53a03469 Rename test class 2025-11-19 10:14:03 +01:00
Benoit Marty
e91f03181f Simplify again. 2025-11-19 10:14:03 +01:00
Benoit Marty
8be1faf70f Improve code again. 2025-11-19 10:14:03 +01:00
Benoit Marty
c1811bb727 roomMembers can be private 2025-11-19 10:14:03 +01:00
Benoit Marty
1dbf2319ff Avoid creating many PowerLevelRoomMemberComparator instance and also avoid doing the sorting twice. 2025-11-19 10:14:03 +01:00
Benoit Marty
b3969fdb8e Remove class duplication. 2025-11-19 10:14:03 +01:00
Benoit Marty
a50844c0e6 Avoid creating a new Collator and apply same decomposition across codebase. 2025-11-19 10:14:03 +01:00
Benoit Marty
d799fa3b5a Fix reported crash.
https://github.com/element-hq/element-x-android-rageshakes/issues/8517
2025-11-19 10:14:03 +01:00
Benoit Marty
8ca0e34a3a Merge pull request #5761 from element-hq/feature/bma/fixCrashAtStartup
Fix crash at startup
2025-11-19 09:47:50 +01:00
Benoit Marty
03094ec298 Fix crash at startup 2025-11-19 09:34:17 +01:00
renovate[bot]
33e4c9fc0c fix(deps): update dependency com.squareup.okhttp3:okhttp-bom to v5.3.2 2025-11-18 16:44:05 +00:00
Benoit Marty
b54b077125 Merge pull request #5755 from element-hq/feature/bma/cleanupDb
Remove unused `slidingSyncProxy` from DB.
2025-11-18 17:42:09 +01:00
Benoit Marty
7cbc616bef Remove unused import. 2025-11-18 16:42:34 +01:00
Benoit Marty
de2ab5a557 Merge pull request #5722 from element-hq/feature/bma/moduleCleanup
Module cleanup
2025-11-18 16:14:10 +01:00
Benoit Marty
5728452e68 Remove unused slidingSyncProxy from DB. 2025-11-18 15:58:22 +01:00
Jorge Martin Espinosa
1dbc774724 Try fixing forced dark mode issues on MIUI on Android 10 (#5708) 2025-11-18 15:34:06 +01:00
Jorge Martin Espinosa
396edbce3d Enable logging OkHttp traffic based on the current log level (#5750)
* Use `LogLevel` to decide whether to log the HTTP requests and responses

Added `DynamicHttpLoggingInterceptor` for this.

* Code cleanup.

* Use Timber.d

* OutOfMemoryError should not be caught. They are considered unrecoverable.

* Improve code in DefaultBugReporter.

---------

Co-authored-by: Benoit Marty <benoit@matrix.org>
2025-11-18 15:18:27 +01:00
Jorge Martin Espinosa
5a5c0b16ca Revert "Stop overriding the homeserver when restoring a Client (#5753)" (#5754)
This reverts commit a0a3a30aa3.
2025-11-18 15:16:34 +01:00
Jorge Martin Espinosa
a0a3a30aa3 Stop overriding the homeserver when restoring a Client (#5753)
This isn't necessary and overrides the existing data previously saved by the SDK, resulting in losing data such as the `Client::server` (the discovery server URL).

In turn, this caused the app to be unable to refresh the server info in some homeservers.
2025-11-18 11:48:42 +01:00
Jorge Martin Espinosa
2b5c94cf9a Add media retention policy (#5749)
* Add media retention policy.

Add `ByteSize` class to help with conversions between byte units.

* Use bit shifting instead of multiplication

Improve the tests too
2025-11-18 07:53:45 +00:00
renovate[bot]
5dc93d672f fix(deps): update dependency org.maplibre.gl:android-sdk to v12.1.3 (#5743)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-18 08:02:15 +01:00
renovate[bot]
41dddc2b5f fix(deps): update metro to v0.7.6 (#5752)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-18 08:01:36 +01:00
Benoit Marty
bfbb1c74ee Merge pull request #5626 from element-hq/bma/brandColor
Fix issue on brand color override
2025-11-18 07:58:49 +01:00
Benoit Marty
42e91a3395 @Inject is not necessary here. 2025-11-17 21:35:56 +01:00
Benoit Marty
66d65b1a28 Update ref 2025-11-17 18:05:55 +01:00
Benoit Marty
6dd008948b Fix Javascript issue. 2025-11-17 18:05:29 +01:00
Benoit Marty
8a0bada50c vector-im -> element-hq 2025-11-17 18:04:54 +01:00
Benoit Marty
bc28c0e07e Update Ref. 2025-11-17 18:04:53 +01:00
Benoit Marty
ccd704acd9 Enable Konsist test. 2025-11-17 18:03:43 +01:00
Benoit Marty
399ad6ea03 Ensure the color has a # prefix. 2025-11-17 18:03:43 +01:00
Benoit Marty
56d15d2eaf Merge pull request #5748 from element-hq/feature/bma/newNotificationSound
Use new notification sound in release.
2025-11-17 16:36:13 +01:00
Benoit Marty
94a022889f Use new notification sound in release. 2025-11-17 16:25:17 +01:00
Benoit Marty
1c052bf31d Merge pull request #5736 from element-hq/feature/bma/roomV12
Render Owner in the horizontal list when editing Admins.
2025-11-17 13:41:52 +01:00
Benoit Marty
49570f53b5 Cleanup 2025-11-17 13:41:16 +01:00
Benoit Marty
ebbe477135 Using Kdoc is not correct here. 2025-11-17 13:40:19 +01:00
Benoit Marty
ea4dea548a Ignore some ktlint rules. 2025-11-17 13:39:42 +01:00
S1m
3cbdc97cdd Fix push gateway with some push provider (Sunup/autopush) (#5741)
* Add more HTTP response code returning NoMatrixGateway

Fix Push notifications with Mozilla's autopush that returns 406

* Update gateway resolver tests to match new known errors
2025-11-17 13:34:35 +01:00
Jorge Martin Espinosa
6bdb4d1ad4 Send read receipts using the current timeline, not the live timeline (#5731)
This fixes sending read receipts in threaded timelines.
2025-11-17 13:33:17 +01:00
renovate[bot]
cfa3e9fb44 fix(deps): update dependency com.google.firebase:firebase-bom to v34.6.0 (#5737)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-17 13:27:42 +01:00