Commit graph

5688 commits

Author SHA1 Message Date
ganfra
de304a7d55 Fix and add tests related to location 2026-03-12 12:31:51 +01:00
ganfra
e8308d9d8e Add Constraints check for permissions and GPS check 2026-03-12 11:53:36 +01:00
ganfra
a56ecb9c69 Set LocationShareRow max lines to Text components 2026-03-12 10:29:20 +01:00
ganfra
50cf8a6986 Make sure zoom is at least DEFAULT_ZOOM when following user position 2026-03-12 10:28:36 +01:00
ganfra
92cb2ccb95 Fix previews 2026-03-10 21:48:54 +01:00
ganfra
a5f574888f Check location is enabled 2026-03-10 21:48:37 +01:00
ganfra
0056a3f163 Fix compilation 2026-03-09 21:19:57 +01:00
ganfra
7575d78d86 Start implementing location shares sheet content 2026-03-09 20:54:02 +01:00
ganfra
4a271f339a Start cleaning up location code 2026-03-09 20:54:02 +01:00
ganfra
09382530a3 Use android.graphic.canvas to create proper bitmap 2026-03-09 20:54:02 +01:00
ganfra
5f16a5658b LocationPin : disable hardware rendering if needed 2026-03-09 20:54:02 +01:00
ganfra
785587911b Introduce LocationPinMarkers composable 2026-03-09 20:54:02 +01:00
ganfra
f2d4ffc5bd Introduce LiveLocationContent for the timeline (needs sdk) 2026-03-09 20:54:01 +01:00
ganfra
57885f449b Start using LocationPinMarker in Share and Show locations 2026-03-09 20:54:01 +01:00
ganfra
818b32713e Add current user to ShareLocationState 2026-03-09 20:54:01 +01:00
ganfra
05d10c3403 Fix MapBottomSheetScaffold paddings 2026-03-09 20:54:01 +01:00
ganfra
270fbe3744 Use ListItem.onClick method 2026-03-09 20:54:01 +01:00
ganfra
ffad69b7b9 Make sure we can display both Live and Static locations in ShowLocation 2026-03-09 20:54:01 +01:00
ganfra
e1e7c264ed Raname UserLocation to UserLocationPuck 2026-03-09 20:54:01 +01:00
ganfra
aa55a3aae7 First iteration using maplibre-compose 2026-03-09 20:54:01 +01:00
ganfra
268d2e587e Location accuracy should be nullable 2026-03-09 20:54:01 +01:00
ganfra
4e2ba3c1d9 Allow picking duration for the live location share 2026-03-09 20:54:01 +01:00
ganfra
198f11c61f Add share live location item 2026-03-09 20:54:01 +01:00
ganfra
cacaadf3ac Rename ShareLocationEvents -> ShareLocationEvent 2026-03-09 20:54:01 +01:00
ganfra
8a12cba923 Rename send location to share location 2026-03-09 20:54:01 +01:00
Valere Fedronic
95049849cc
Merge branch 'develop' into valere/rtc/voice_call 2026-03-09 17:18:55 +01:00
ElementBot
73961b4940
Sync Strings (#6302)
Co-authored-by: bmarty <3940906+bmarty@users.noreply.github.com>
2026-03-09 10:38:07 +01:00
Jorge Martin Espinosa
e821f75a88
Add code to help debugging the saved nav state graph (#6295)
* Add code to help debugging the saved nav state graph: this would help us diagnose the `TransactionTooLargeException` reports we've been seeing for months.
2026-03-06 14:44:30 +00:00
Valere
14cea294bb Merge branch 'develop' into valere/rtc/voice_call 2026-03-06 12:22:28 +01:00
Valere
bad6085fb2 review: consistency use isAudioCall everywhere (instead of voiceOnly) 2026-03-06 12:19:05 +01:00
Valere
4406b50542 review: fix bad usage of modifier 2026-03-06 12:15:20 +01:00
Valere
79d8ec16b9 review: Rename aIncomingCallScreenState to aCallNotificationData 2026-03-06 12:12:32 +01:00
Valere
874311011a fix tests 2026-03-05 12:14:42 +01:00
Valere
dd0143bf62 fix RoomDetailsViewTest 2026-03-05 11:28:38 +01:00
Valere
c67a76fbda fix call state presenter test 2026-03-05 10:46:20 +01:00
Valere
7897101009 fix test for voice call button 2026-03-05 10:09:10 +01:00
Benoit Marty
022eb5f1fe Fix test 2026-03-04 21:02:37 +01:00
Valere
f81f79f79a fix tests 2026-03-04 19:07:53 +01:00
Valere
1f4601c936 konsist: fix PreviewParameterProvider naming convention 2026-03-04 17:54:41 +01:00
Benoit Marty
c97bf08008 Rename our classes too. 2026-03-04 17:41:44 +01:00
Valere
ccc276fe22 remove a done TODO comment 2026-03-04 17:39:36 +01:00
Valere
fdd39fa17b on show voice call only option in DMs 2026-03-04 15:08:24 +01:00
Valere
22a9e541fe fix missing rename of var 2026-03-04 14:05:58 +01:00
Valere
0e3722e52e Merge branch 'develop' into valere/rtc/voice_call 2026-03-04 13:46:54 +01:00
Valere
be370911d2 rename voiceIntent to isAudioCall 2026-03-04 11:10:40 +01:00
Valere
7ef43abd57 Support incoming audio only calls 2026-03-04 08:56:33 +01:00
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
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
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