Commit graph

13566 commits

Author SHA1 Message Date
Jorge Martin Espinosa
68023b5c74
Simplify push notification flow by using locally stored values for pending pushes (#6258)
* Create `PushRequest` in push history DB: this will be used to store requests for push notifications, either pending or completed ones.

* Rename `WorkManagerRequest` to `WorkManagerRequestBuilder`: make its `build` method return a list of `WorkManagerRequestWrapper`, which can be used to enqueue normal or unique workers.

* Rename `PerformDatabaseVacuumRequestBuilder` and adapt it to the new API.

* Adjust other components using `WorkManagerRequest`.

* Replace `SyncNotificationWorkManagerRequestBuilder` with `SyncPendingNotificationsRequestBuilder` and `FetchNotificationsWorker` with `FetchPendingNotificationsWorker`: this new pair of request builder and worker allow enqueuing requests for a session id and, once the worker runs, retrieve all the pending request data and use it to fetch the associated events. This simplifies quite a bit how this data had to be passed or grouped, since it's no longer necessary to do so

* Add new methods to `PushHistoryService` to modify the `PushDatabase`:

- insertOrUpdatePushRequest
- insertOrUpdatePushRequests
- getPendingPushRequests
- removeOldPushRequests

* Make `PushHandler` just handle incoming pushes: those will be inserted into the pending push request table in DB, then handled by the new worker. Once the process finished, a new `NotificationResultProcessor` will handle the results and what needs to be done with them (call ringing, displaying notifications, etc.)

* Add `requestType` optional parameter to `WorkManagerScheduler.cancel` so we can decide to only cancel some kinds of requests.

* Add migration to remove existing work manager requests for fetching notifications, since the previous worker class no longer exists.
2026-03-03 15:14:36 +00:00
Benoit Marty
df6ffd0c57
Sync compound tokens https://github.com/element-hq/compound-design-tokens/releases/tag/v6.10.1 (#6273)
* Import compound token v6.10.1

./tools/compound/import_tokens.sh -b v6.10.1

* Use stop icon from Compound.

* Fix compilation issue.

* Use gradient color in ComposerAlertMolecule. Fixes #6192

* Update screenshots

* Remove ComposerAlertLevel.Default (not in the design).

* Update screenshots

---------

Co-authored-by: ElementBot <android@element.io>
2026-03-03 14:42:27 +01:00
renovate[bot]
611c959e11
Update dependencyAnalysis to v3.6.1 (#6259)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-03 14:41:06 +01:00
Jorge Martin Espinosa
ae6ea76794
Use ShareIntentHandler early to avoid distributing the whole intent (#6274)
* Use `ShareIntentHandler` early to avoid distributing the whole intent

This would make the intent be serialized as part of `NavTarget` and could potentially lead to `TransactionTooLargeException`s.

We now pass a new `ShareIntentData` class around, containing the minimum amount of data needed. We also have a new `OnSharedData` post-processor to revoke uri access after they've been shared.

* Move `UriToShare` next to `ShareIntentData` and add docs
2026-03-03 13:12:33 +00:00
renovate[bot]
2b04c4bfc0
Update metro to v0.11.2 (#6270)
* Update metro to v0.11.2

* Bind push tests to the right scope .Add a comment so we don't forget to do it for future ones.

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jorge Martín <jorgem@element.io>
2026-03-03 13:39:43 +01:00
Jorge Martin Espinosa
8fab22ec7d
Make 'room list catch-up' analytics transaction network aware (#6233)
* Make 'room list catch-up' analytics transaction network aware.
* Add `RoomListService.isInitialSyncDone`. Use this to simplify `DefaultAnalyticsRoomListStateWatcher`'s logic.
2026-03-03 13:16:58 +01:00
Benoit Marty
b65b9eeab9
Merge pull request #6035 from element-hq/fix/remove-fragment-part-in-mxc-urls
Add `MediaSource.safeUrl` for removing invalid fragment part from URLs
2026-03-03 11:57:49 +01:00
Benoit Marty
b0bcb248a1
Merge pull request #6241 from element-hq/feature/bma/fixRedactedNotification
Ensure that redacted event from encrypted room does not trigger a fallback notification
2026-03-03 11:43:45 +01:00
renovate[bot]
fdbe518db3
Update dependency com.posthog:posthog-android to v3.34.3 (#6272)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-02 14:56:10 +01:00
ElementBot
cf479a8df0
Sync Strings from Localazy (#6269)
Co-authored-by: bmarty <3940906+bmarty@users.noreply.github.com>
2026-03-02 14:54:50 +01:00
ElementBot
6ee75b462b Update screenshots 2026-03-02 13:15:54 +00:00
Benoit Marty
9292a8efc7 Remove ComposerAlertLevel.Default (not in the design). 2026-03-02 13:56:08 +01:00
ElementBot
84b946f6d5 Update screenshots 2026-03-02 12:19:18 +00:00
Benoit Marty
de9987deea Use gradient color in ComposerAlertMolecule. Fixes #6192 2026-03-02 13:03:47 +01:00
Benoit Marty
cc0a9dc907 Fix compilation issue. 2026-03-02 12:44:58 +01:00
Benoit Marty
21aaa98d61 Use stop icon from Compound. 2026-03-02 12:42:45 +01:00
Benoit Marty
b27ab2ef0c Import compound token v6.10.1
./tools/compound/import_tokens.sh -b v6.10.1
2026-03-02 12:40:33 +01:00
Jorge Martin Espinosa
fb17509726
CI: Add failed tests to summary (#6271)
* Fix maestro CI flow not writing the successful summary

* Add the test failures to the summary of the `test` CI flow
2026-03-02 11:23:41 +01:00
ganfra
7571f1e530
Merge pull request #6267 from element-hq/renovate/compose.bom
Update dependency androidx.compose:compose-bom to v2026.02.01
2026-03-02 11:19:30 +01:00
ganfra
ec435e4667
Merge pull request #6262 from element-hq/renovate/com.google.firebase-firebase-bom-34.x
Update dependency com.google.firebase:firebase-bom to v34.10.0
2026-03-02 11:16:33 +01:00
Benoit Marty
04977f655f Fix API break. 2026-03-02 09:40:42 +01:00
Benoit Marty
8fc9354f77 Fix API break. 2026-03-02 09:18:43 +01:00
renovate[bot]
be316b2391 Update dependency org.matrix.rustcomponents:sdk-android to v26.03.1 2026-03-02 09:16:22 +01:00
Benoit Marty
43319f6e90 Handle EventRedacted case. Fixes #5569 2026-03-02 09:15:53 +01:00
renovate[bot]
85272375ab
Update dependency androidx.compose:compose-bom to v2026.02.01 2026-02-28 01:41:00 +00:00
Benoit Marty
1c5f185d6a
Merge pull request #6264 from element-hq/feature/bma/bottomBarIteration
Bottom bar iteration
2026-02-27 16:16:00 +01:00
renovate[bot]
51b193d87a
Update dependency com.google.firebase:firebase-bom to v34.10.0 2026-02-27 13:24:41 +00:00
ElementBot
e026f66e3d Update screenshots 2026-02-27 12:08:24 +00:00
Benoit Marty
6a999fdec8 Navigation bar: reduce bottom padding. 2026-02-27 12:04:13 +01:00
Benoit Marty
6940cf8be4 Ensure FAB is displayed when navigation bar is not 2026-02-27 12:02:20 +01:00
Jorge Martin Espinosa
8aed1c2ab8
Fix nightly CI issues (#6263)
* Reduce max heap size from 9GB to 8GB for all CI jobs using gradle
2026-02-27 09:31:50 +00:00
renovate[bot]
76f4e1f3ce
Update GitHub Artifact Actions (#6260)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-27 09:55:47 +01:00
Jorge Martín
5fb9dcb0da Apply suggestion:
- Added `MediaSource.safeUrl` property replacing `withCleanUrl` method.
- Made `url` private so it can't be used externally.
- Reverted code in `CoilMediaFetcher`
- Also add tests
2026-02-27 09:52:17 +01:00
Jorge Martín
fecbabb0e4 Add MediaSource.withCleanUrl method that removes invalid fragment data from MXC urls
We've seen some MXC urls in the wild having some `mxc://foo/bar#auto` fragment suffix, which is invalid, but the URL before that fragment part is valid and can be displayed
2026-02-27 09:52:17 +01:00
renovate[bot]
f2e783064e
Update dependencyAnalysis to v3.6.0 (#6256)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-26 18:05:34 +01:00
renovate[bot]
5e63adc2eb
Update dependency com.posthog:posthog-android to v3.34.2 (#6254)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-26 18:05:07 +01:00
renovate[bot]
d23f81a3a9
Update dependency io.element.android:element-call-embedded to v0.17.0 (#6244)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-26 18:04:41 +01:00
ganfra
32e3b9e1c0
Merge pull request #6243 from element-hq/renovate/coil
Update coil to v3.4.0
2026-02-26 15:59:02 +01:00
ganfra
450551a7f3
Merge pull request #6255 from element-hq/renovate/metro
Update metro to v0.11.1
2026-02-26 15:57:53 +01:00
Benoit Marty
e56c7e1227
Floating toolbar (#6147)
* Use floating toolbar on homepage

* Fix deprecation issue

* Create HorizontalFloatingToolbar wrapper in our components.

* Fix Konsist test.

* Fix compilation issue after rebase.

* Fix lint issue. `floatingActionButton` must be the last parameter.

* Add Preview for the case empty space.

* Fix navigation bar overlapping buttons in empty space view.

* Increase content padding, and apply it to the space tab too.

* Update screenshots

---------

Co-authored-by: chelsea <git@cdhildit.ch>
Co-authored-by: ElementBot <android@element.io>
2026-02-26 14:54:06 +01:00
renovate[bot]
2c3f80f8b9
Update metro to v0.11.1 2026-02-26 05:57:36 +00:00
renovate[bot]
78d981505c
Update dependency com.posthog:posthog-android to v3.34.0 (#6251)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-25 18:45:08 +01:00
ElementBot
58b8a37f8f Update screenshots 2026-02-25 15:49:13 +00:00
renovate[bot]
896d62a81e
Update metro to v0.11.0 (#6245)
* Update metro to v0.11.0

* Fix `@AssistedInject` usages

Now the injected variables in the factories must match the names in the constructors

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jorge Martín <jorgem@element.io>
2026-02-25 16:19:47 +01:00
Benoit Marty
34932c55bd Increase content padding, and apply it to the space tab too. 2026-02-25 15:56:30 +01:00
Benoit Marty
38f9f9c386 Fix navigation bar overlapping buttons in empty space view. 2026-02-25 15:56:30 +01:00
Benoit Marty
380102cc26 Add Preview for the case empty space. 2026-02-25 15:56:30 +01:00
Benoit Marty
ee07424f6a Fix lint issue. floatingActionButton must be the last parameter. 2026-02-25 15:56:29 +01:00
Benoit Marty
f8909a30b5 Fix compilation issue after rebase. 2026-02-25 15:51:21 +01:00
Benoit Marty
86dea41951 Fix Konsist test. 2026-02-25 15:51:21 +01:00