Commit Graph

3038 Commits

Author SHA1 Message Date
Benoit Marty 06d80ee497 Add ui test on AdvancedSettingsView. 2024-05-21 14:46:41 +02:00
Benoit Marty 4f03486675 distributors and distributorNames do not need to be mutable. 2024-05-21 14:45:51 +02:00
Benoit Marty 936579ddcc Rename members for clarity 2024-05-21 14:45:51 +02:00
Benoit Marty ada777e45c Add test for push distributor change. 2024-05-21 14:45:20 +02:00
Benoit Marty 92d6b72b2a Localazy 2024-05-21 14:45:19 +02:00
Benoit Marty 82a2992ab3 Cleanup 2024-05-21 14:45:19 +02:00
Benoit Marty 7f9a30a033 Improve code and display error. 2024-05-21 14:45:16 +02:00
Benoit Marty d88ef8769e Add distributor selection in advanced settings 2024-05-21 14:45:15 +02:00
Jorge Martin Espinosa 880ebb4de8 Plain text editor implementation based on markdown input (#2840)
* Add plain text editor based on markdown input
- Fix autofocus of message composer.
- Remove `Message` data class, fetch the details in `MessagesPresenter` instead.
- Remove `enable rich text` option from advanced settings, set it as a build configuration instead.
* Fix MentionSpanProvider
* Bump RTE library to released `v2.37.3`

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2024-05-21 13:58:53 +02:00
Jorge Martin Espinosa 3f2413bc95 Session falsely displayed as 'verified' with no internet connection (#2884)
* Session falsely displayed as 'verified' with no internet connection
	- Remove the need to wait for `isReady` for `SessionVerificationService.canVerifySessionFlow` to fix this.
	- Rename `SessionVerificationService.canVerifySessionFlow` to `needsSessionVerification`.
	- Make `isReady` private.
2024-05-21 11:41:18 +00:00
Jorge Martin Espinosa 8bd9880c23 Use member display names in membership timeline item text (#2883)
* Use member display names in membership timeline item text
2024-05-21 08:26:11 +00:00
Benoit Marty d2d835080e Merge pull request #2877 from element-hq/sync-localazy
Sync Strings
2024-05-21 09:22:16 +02:00
ganfra b7847468fb Merge branch 'develop' into feature/bma/upgradeSdk 2024-05-20 18:29:49 +02:00
Jorge Martin Espinosa 4919cd69b1 When linkifying HTML messages, give priority to explicit link tags (#2879)
* When linkifying HTML messages, give priority to explicit link tags
2024-05-20 13:09:37 +02:00
bmarty 83a8a631f2 Sync Strings from Localazy 2024-05-20 00:23:05 +00:00
Benoit Marty f06a01f894 Replace getRoomPreview by getRoomPreviewFromRoomId.
We do not need `getRoomPreviewFromRoomAlias` since we always resolve the Alias first.
2024-05-17 12:01:57 +02:00
Benoit Marty 38d6e08db4 Format 2024-05-16 11:07:31 +02:00
Benoit Marty f7a3b5df77 Add test about redacting an Event that has not been sent #2855 2024-05-16 10:49:14 +02:00
Benoit Marty 9d4cfd8e20 Merge pull request #2849 from element-hq/feature/bma/roomNameEdition
Improve room setting edition
2024-05-16 09:32:42 +02:00
Benoit Marty 5ab96c3bdc Do not use MutableState in Composable function parameter. 2024-05-15 18:05:08 +02:00
Benoit Marty c3caff0a1f Remove some keys for remember saveButtonEnabled. 2024-05-15 17:58:14 +02:00
Benoit Marty 7f5a3b788c Ignore some non-passing test for now. 2024-05-15 17:10:59 +02:00
Benoit Marty 193081a554 Migrate AvatarActionBottomSheet to Material3 BottomSheet
Also correctly handle the back press when this bottom sheet is opened, previously it was leaving the room edition screen.
ModalBottomSheetLayout can now be deleted.
2024-05-15 16:20:47 +02:00
Benoit Marty 1710671f06 Add UI test on RoomDetailsEditView 2024-05-15 15:19:46 +02:00
Benoit Marty 04537bc684 Fix tests. 2024-05-15 11:56:12 +02:00
Benoit Marty ef28cf314e Move aMatrixRoom to its own file, since it's used by several test classes. 2024-05-15 11:31:30 +02:00
Benoit Marty e6badb1e04 Use rawName instead of displayName in RoomDetailsEditPresenter #2844 2024-05-15 11:24:09 +02:00
Jorge Martin Espinosa ef38535665 UX cleanup: reorder text composer actions (#2847)
* UX cleanup: reorder text composer actions

* Update screenshots

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2024-05-15 10:28:06 +02:00
Benoit Marty a4c4d6d804 Avoid using copy in RoomDetailsEditStateProvider 2024-05-15 10:10:48 +02:00
Benoit Marty 0b9724af84 EditUserProfileState.userId cannot be null.
It simplifies a bit the codebase.
2024-05-15 09:46:01 +02:00
Benoit Marty 4b720f90b7 Rename parameter since it can reference a userId or a roomId 2024-05-15 09:25:59 +02:00
Benoit Marty cf0da56bb8 Change type of roomId from String to RoomId 2024-05-15 09:23:30 +02:00
Benoit Marty 4f74dd4c93 Merge pull request #2843 from element-hq/feature/bma/joinRoomVia
Provide serverNames when available and fix issue around analytics
2024-05-14 17:17:59 +02:00
Benoit Marty 22329b9678 Provide serverNames when available and fix issue around analytics 2024-05-14 15:58:10 +02:00
ganfra 624a3435cb Fix running roomDirectory/testReleaseUnitTest 2024-05-14 14:27:58 +02:00
Benoit Marty cbc3971434 Merge pull request #2834 from element-hq/sync-localazy
Sync Strings
2024-05-14 11:50:05 +02:00
Benoit Marty 5814de1efd It's not possible to join room from the RoomDirectory screen anymore.
Cleanup after #2827
2024-05-14 10:23:07 +02:00
Jorge Martin Espinosa f2f96e0e0a Bump Rust SDK to v0.2.18 and bump app version (#2836)
* Adapt to changes in SDK:
    - Remove name from MatrixRoom, we should use displayName instead.
    - Remove separate invites room list.
    - Added runBlocking to get the now async NotificationClient from the Rust SDK.
    - Made some other functions suspend.
    - Client.resolveRoomAlias now returns a roomId and via parameters, we pass the roomId.

* Add logs removal migration again as `AppMigration03` to make sure we don't leak private data in existing logs.

* Bump app version to `0.4.12`
2024-05-13 16:48:23 +02:00
Benoit Marty 5f1b51d5f2 Sync strings again after fix on Localazy. 2024-05-13 15:21:08 +02:00
bmarty 0910da0a14 Sync Strings from Localazy 2024-05-13 12:47:48 +00:00
Jorge Martin Espinosa 1f4b2d3ef3 Upload app id and clean version to bug reports (#2829)
* Upload app id and clean version to bug reports

* Add changelog
2024-05-10 12:15:33 +02:00
Jorge Martin Espinosa b95df7e6b4 Remove join button on room directory search (#2827)
* Remove 'Join' button in room directory search results

* Update screenshots

* Add changelog

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2024-05-10 11:31:18 +02:00
Jorge Martin Espinosa 2f19f57aa3 Make logs less verbose, especially for sliding sync (#2825)
* Make logs less verbose, especially for sliding sync.

Use the same config as iOS for most targets.

* Make sure we don't try to upload logs that are larger than the max request size of the bug reporter server.

* Display the loading state as soon as the bug reporter starts processing the log files

* Add changelog
2024-05-09 16:39:59 +02:00
Jorge Martin Espinosa 48bb0f4122 Add room badges (#2822)
* Add room badges

* Remove no longer used `onShareRoomMember` callback

* Update screenshots

* Add changelog

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2024-05-09 08:38:40 +02:00
Jorge Martin Espinosa 5dddda64d1 UX cleanup: DM details screen (#2820)
* UX cleanup: user profile.

- Move send DM to a CTA button.
- Add 'Call' CTA button too when there is a DM with that user and a call is possible.
- Add missing tests.

* Update screenshots

* Add tests for clicking on the avatar

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2024-05-08 16:05:02 +02:00
Jorge Martin Espinosa 0bbb107dea UX cleanup: DM details screen (#2817)
* UX cleanup: DM details screen

Reuse `MainActionsSection` for DMs too, hiding the Share CTA in that case.

* Update screenshots

* Fix tests

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2024-05-08 12:49:44 +02:00
Jorge Martin Espinosa 46b22d7db7 UX cleanup: room details (#2816)
* UX cleanup: room details screen

Add new CTA buttons for Invite and Call actions

* Update screenshots

* Fix maestro

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2024-05-08 11:42:33 +02:00
Jorge Martin Espinosa 5c59f6c20f Enforce mandatory session verification only for new logins (#2811)
* Enforce mandatory session verification only for new logins

- Creates `AppMigration` base interface as a way to isolate migration logic, app migrations must implement this interface.
- Creates `AppMigration01` with the existing logs removal migration and `AppMigration02` with the logic to allow existing sessions to skip verification.
- Add `DefaultSessionPreferencesStoreFactory.remove(sessionId)` to allow a ephemeral session store access to exist outside the `SessionScope` for this new migration.

* Fix tests

* Add more tests.

This also includes creating several abstractions.

* Review changes.

- Make `orderedMigrations` a class property, `migrations` just a constructor parameter to avoid incorrect usages.
- Create `lastMigration` property too, use it instead of `MIGRATION_VERSION`.
2024-05-07 14:06:34 +00:00
Benoit Marty 89545e0800 Merge pull request #2797 from element-hq/sync-localazy
Sync Strings
2024-05-06 17:23:42 +02:00
Jorge Martin Espinosa e82e3330b2 UX cleanup: reorder options in the main settings screen (#2802)
* UX cleanup: reorder options in the main settings screen

* Update screenshots

* Group sections in composables

* Add some horizontal padding to the `Footer` component

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2024-05-06 15:20:03 +00:00