Commit Graph

4557 Commits

Author SHA1 Message Date
Jorge Martin Espinosa
a87bbdd91c Delegate call notifications to Element Call, upgrade SDK and EC embedded (#5119)
* Stop sending call notifications manually: the Element Call widget can now assume responsibility for sending them when you start a call.

* Upgrade SDK version to `v25.8.5`, fix API breaks

* Upgrade Element Call embedded to `v0.14.1`

* Fix tests and lint issues

* Add `RoomListEntriesDynamicFilterKind.NonSpace` to avoid displaying spaces in the room list

---------

Co-authored-by: Robin <robin@robin.town>
2025-08-05 15:14:51 +00:00
Benoit Marty
aae24e01ef Sync string again 2025-08-04 14:50:08 +02:00
bmarty
a2c8107b44 Sync Strings from Localazy 2025-08-04 00:34:11 +00:00
Jorge Martin Espinosa
8298404630 Adapt 'change roles' screens to the new creator/owner role (#5076)
* Replace `RoomMember.Role.CREATOR` with `RoomMember.Role.Owner` - Make `RoomMember.Role` a sealed interface instead

* Adapt room member role mapping to include the power level to distinguish between admins and owners

* Use new `RoomMember.Role` sealed interface through the app

* Change how `MembersByRole` groups members to add owners to the admins section

* Adapt the `ChangeRoles` screen to the new roles:
    - Owners can't modify other owner's roles.
    - They can modify the roles of any other user, without confirmation.

* Adapt 'roles and permissions' screen:
    - Owners can't demote themselves.
    - The admin count also counts owners.

* Add more tests and screenshots

* Add owners to its own section in the 'change roles' screen

* Update screenshots

---------

Co-authored-by: ElementBot <android@element.io>
2025-07-29 14:07:16 +00:00
bmarty
0d0e958bd4 Sync Strings from Localazy 2025-07-28 00:33:43 +00:00
Jorge Martin Espinosa
2750835a36 Make sure we display errors when we create a recovery key and it fails (#5079)
* Make sure we display errors when we create a recovery key and it fails

* Add another preview for the error state

* Update screenshots

---------

Co-authored-by: ElementBot <android@element.io>
2025-07-25 13:36:43 +02:00
Jorge Martin Espinosa
7958bb4692 Prevent crash caused by re-release of wakelock in calls (#5077) 2025-07-25 13:36:23 +02:00
Jorge Martin Espinosa
b57e79f8c6 Prevent loop when exiting the attachments preview screen (#5078)
Disable the custom `BackHandler` when the `sendState` is `Done`. Otherwise, it can get into a loop in some cases where `postCancel()` calls the `OnDoneListener`, which triggers an up navigation, which then simulates a back press... and we end up in the custom `BackHandler` again.
2025-07-25 13:36:09 +02:00
renovate[bot]
58e1503e61 Update dependency org.matrix.rustcomponents:sdk-android to v25.7.23 (#5073)
* Update dependency org.matrix.rustcomponents:sdk-android to v25.7.23

* Adapt to SDK changes:

- Add 'creator' role, adapt existing logic to it.
- Remove `ReplyParameters`, replace with `EventId` where possible.
- Fix changes in OIDC auth methods.
- Add more join rules.

* Make sure both creators and users with power level >= 150 are displayed as 'owners' in the room member list.

* Don't close the roles and permissions screen if the user is a creator

* Use `MediaPreviewValue.DEFAULT` for `MediaPreviewConfig.DEFAULT` too

* Improve APIs around checking roles and power levels:
    - Ensure `RoomInfo.RoomPowerLevels.users` can't be directly used to check power levels since it can't check the power levels for creators.
    - Add a few helper functions to handle actions that relied on the previous `users` property, and docs to explain their usages.

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jorge Martín <jorgem@element.io>
2025-07-24 11:58:30 +02:00
Jorge Martin Espinosa
b219c05d06 Make sure we clean up the pre-processed and uploaded media (#5039)
* Add `MediaSender.cleanUp()` and `MediaPreProcessor.cleanUp()` methods: this will remove the temporary files created when pre-processing media before sending them.

* Make sure we clean up also the previous temporary media.

* Fix the condition for the custom back handler in the attachments preview screen

* Tests: check the clean up is performed when needed
2025-07-23 08:55:20 +02:00
ganfra
746699b468 Merge pull request #5054 from element-hq/sync-localazy
Sync Strings
2025-07-22 21:13:30 +02:00
bmarty
06312b2e4a Sync Strings from Localazy 2025-07-22 20:46:13 +02:00
ganfra
566377abc8 Merge pull request #5046 from element-hq/feature/bma/a11y/createRoomImage
[a11y] Improve accessibility on avatar when creating a room.
2025-07-22 18:25:23 +02:00
Jorge Martin Espinosa
1ad78b54f8 Use lower level APIs to draw the message bubbles (#5056)
Co-authored-by: ElementBot <android@element.io>
2025-07-21 12:00:31 +02:00
Andy Balaam
6752146061 Grammar fixes for docs and comments (#5043) 2025-07-17 20:32:37 +02:00
Benoit Marty
3396b2b043 [a11y] Improve accessibility on avatar when creating a room. 2025-07-17 16:46:34 +02:00
Benoit Marty
c40badec65 Merge pull request #5017 from element-hq/feature/bma/a11y/sessionVerification
[a11y] Improve session verification screens
2025-07-17 15:45:32 +02:00
Benoit Marty
584aaa6fe4 Fix typo 2025-07-17 15:14:49 +02:00
Benoit Marty
e3f07a1273 Remove blank line 2025-07-16 11:23:42 +02:00
Benoit Marty
9dbb2634ab FAB: iterate on design 2025-07-16 10:11:53 +02:00
Benoit Marty
75c9bf20db Iterate on FloatingActionButton shape and colors. 2025-07-16 09:47:08 +02:00
bmarty
fcacfa87c1 Sync Strings from Localazy 2025-07-14 00:33:09 +00:00
Benoit Marty
a1fc4487f3 [a11y] Ensure that the loading state is read out. 2025-07-11 15:42:44 +02:00
Benoit Marty
4618730ff0 [a11y] Ensure that the header is focused on each verification step change 2025-07-11 15:33:52 +02:00
Benoit Marty
7ec37b5123 [a11y] Group emoji labels so that they are read out all together. 2025-07-11 14:43:25 +02:00
Benoit Marty
9f5acd24fa [a11y] Group device information and spell out the deviceId 2025-07-11 14:35:08 +02:00
Benoit Marty
2da22c98a1 OutgoingVerificationView: replace PageTitle by IconTitleSubtitleMolecule 2025-07-11 14:17:33 +02:00
Benoit Marty
63a50bb206 IncomingVerificationView: replace PageTitle by IconTitleSubtitleMolecule 2025-07-11 14:16:36 +02:00
Benoit Marty
69530becdf AnalyticsOptInView: replace PageTitle by IconTitleSubtitleMolecule 2025-07-11 14:15:12 +02:00
Benoit Marty
a6e29b506b ChooseSelfVerificationModeView: replace PageTitle by IconTitleSubtitleMolecule 2025-07-11 14:12:39 +02:00
Benoit Marty
8c5a81f46e NotificationsOptInView: replace PageTitle by IconTitleSubtitleMolecule 2025-07-11 14:10:48 +02:00
Benoit Marty
b71d3fe91d Add time limited indication for verification request. 2025-07-11 14:01:40 +02:00
Benoit Marty
f39304d9d2 Merge pull request #5007 from element-hq/feature/bma/a11y/reportRoom
[a11y] Fix several issues around accessibility
2025-07-10 16:36:10 +02:00
Benoit Marty
00a00ecbe4 Fix test 2025-07-10 11:40:38 +02:00
Benoit Marty
fa9268175e Fix test 2025-07-10 10:36:57 +02:00
Benoit Marty
803a5292ba [a11y] Improve accessibility of picto next to the timestamp.
https://github.com/element-hq/customer-success/issues/572
2025-07-09 17:32:59 +02:00
Benoit Marty
035aaf5aa2 Sync strings. 2025-07-09 16:20:47 +02:00
Benoit Marty
00a1e3c1d0 [a11y] Fix talkback saying twice "Report room" 2025-07-09 16:09:17 +02:00
Benoit Marty
cc22a84735 Disable hazeEffect if spaces are not enabled.
Give us time to fix the transparency issue that has been discovered on the navigation bar.
2025-07-09 15:17:42 +02:00
Benoit Marty
7cad1f2d76 Ensure that EmptyView has the padding too, especially when there is a banner to display.
Add preview with empty list and banner.
2025-07-09 14:48:13 +02:00
Benoit Marty
bb3677c161 Remove useless Box 2025-07-09 14:47:33 +02:00
Benoit Marty
da9aa7d722 Apply content padding to skeleton view. 2025-07-09 14:47:32 +02:00
Benoit Marty
80df68c1dc Enable blur effect on the top bar too. 2025-07-09 14:47:32 +02:00
Benoit Marty
8fec3986b4 Remove unused composable and cleanup colors (#5000)
* Remove unused BigCheckmark

* Change fun to val and extend SemanticColors

* Add preview for mentions in the context of the timeline.

* Update screenshots

---------

Co-authored-by: ElementBot <android@element.io>
2025-07-09 14:37:32 +02:00
Jorge Martin Espinosa
a6cfea3f05 Make ContentAvoidingLayoutData an immutable data class (#4999) 2025-07-08 18:26:18 +02:00
Benoit Marty
0077d96138 Change fun to val and extend SemanticColors 2025-07-08 17:49:06 +02:00
Benoit Marty
dc4c5a561b Merge pull request #4979 from element-hq/renovate/major-okhttp-monorepo
Update dependency com.squareup.okhttp3:okhttp-bom to v5
2025-07-08 15:17:04 +02:00
Benoit Marty
fdcde8cac8 Fix quality issue. 2025-07-08 12:41:45 +02:00
Benoit Marty
789cb40501 Merge pull request #4990 from element-hq/feature/bma/workspaceIcon
Home navigation bar fixes
2025-07-08 12:35:20 +02:00
Benoit Marty
772e060c0f Convert BugReporterMultipartBody to Kotlin, and update using latest version of okhttp3.MultipartBody.
Adapt to Element code
2025-07-08 12:30:18 +02:00