Commit Graph

3038 Commits

Author SHA1 Message Date
Benoit Marty
23fc5bc384 Add unit test on RoomPreviewMapper 2024-09-18 17:16:06 +02:00
Benoit Marty
99d9253e9a Add unit test on RoomDescriptionMapper 2024-09-18 17:16:06 +02:00
Benoit Marty
149cf7313b Add unit test on SyncServiceState.toSyncState 2024-09-18 17:16:06 +02:00
Benoit Marty
662e79871c Add unit test on UserSearchResultMapper 2024-09-18 17:16:06 +02:00
Benoit Marty
292e587276 Add unit test on UserProfileMapper 2024-09-18 17:16:06 +02:00
Benoit Marty
07258052e4 Add unit test on toRoomType 2024-09-18 17:16:06 +02:00
Benoit Marty
d13c9d9851 Add unit test on ReceiptType.toRustReceiptType() 2024-09-18 17:16:06 +02:00
Benoit Marty
b540b4796e Add unit test on MatrixRoomInfoMapper 2024-09-18 17:16:06 +02:00
Benoit Marty
7626ace24c Change type of items in activeRoomCallParticipants from String to UserId 2024-09-18 17:16:06 +02:00
Benoit Marty
b842a53106 Change type of items in alternativeAliases from String to RoomAlias 2024-09-18 17:16:06 +02:00
Benoit Marty
33f8d2d013 Add unit test on MessageEventType mappers 2024-09-18 17:16:06 +02:00
Benoit Marty
9e59aac6c7 Add unit test on elementHeroes() 2024-09-18 17:16:06 +02:00
Benoit Marty
0c37938f44 Add unit test on mappers 2024-09-18 17:16:06 +02:00
Benoit Marty
e5fdfc366b Ensure mapping of Rust exceptions cover all cases. 2024-09-18 17:16:06 +02:00
Benoit Marty
f028e902db Add unit test on crypto mappers 2024-09-18 17:16:06 +02:00
Benoit Marty
1ae10364ae Add unit test on providesTracingFilterConfiguration 2024-09-18 17:16:06 +02:00
Benoit Marty
6296cf25d9 Add unit test on ProgressWatcherWrapper 2024-09-18 17:16:06 +02:00
Benoit Marty
a77f408432 Make sure Throwable.mapAuthenticationException() is exhaustive on mapping ClientBuildException and add test for full coverage. 2024-09-18 17:16:06 +02:00
Benoit Marty
03eb7521ba Add unit test on QrLoginProgress.toStep() 2024-09-18 17:16:06 +02:00
Benoit Marty
c3bb7ef84f Add unit test on QrErrorMapper 2024-09-18 17:16:06 +02:00
Benoit Marty
9578d67981 Add unit test on toAnalyticsJoinedRoom and fix a mapping issue. 2024-09-18 17:16:06 +02:00
Jorge Martin Espinosa
cb3c5d0c49 Fix sliding sync proxy login not working after native SS failure (#3489) 2024-09-18 17:02:49 +02:00
Benoit Marty
d7c92e3824 Cleanup tests. 2024-09-18 14:26:45 +02:00
Benoit Marty
d9f96b8fb3 Move FakeRust classes and factories to a fixtures package 2024-09-18 14:23:07 +02:00
Benoit Marty
7f7612ef12 Code cleanup 2024-09-18 14:14:10 +02:00
Benoit Marty
bf7a99d9cd Merge pull request #3486 from element-hq/feature/bma/fixRoomAliasMatcch
Distinguish between roomId and roomAlias.
2024-09-18 13:56:00 +02:00
Jorge Martin Espinosa
8c2a6a54af Make sure the logout action doesn't cause a crash (#3480)
* Make sure the logout doesn't cause a crash

Some reasons why this could happen:
1. The `ClientDelegate` could receive a `didReceiveAuthError` callback call on a logout, which could trigger another logout when every Rust object had already been destroyed.
2. Even though we stop the sync before logging out, `LoggedInFlowNode` will try to start it again automatically when it detects we still have internet connection.

Making sure to unregister the delegate should fix the first part of the issue.

For the other one, adding `RustSyncService.isServiceReady` to check if we should start/stop the service, which is enabled by default and set to false on destroy should help.

* Apply the same patch on account deactivation.

---------

Co-authored-by: Benoit Marty <benoit@matrix.org>
2024-09-18 11:54:54 +00:00
Benoit Marty
5893b4d0b4 Distinguish between roomId and roomAlias. 2024-09-18 12:27:07 +02:00
Benoit Marty
c878e9beb5 Make text parts in bold. 2024-09-17 17:39:23 +02:00
Benoit Marty
ea355d29ed Account deactivation. 2024-09-17 16:51:11 +02:00
bmarty
97cf19cb71 Sync Strings from Localazy 2024-09-17 11:05:35 +00:00
Benoit Marty
750e0312c7 Fix test compilation issue. 2024-09-17 11:01:28 +02:00
Benoit Marty
70a5756369 Use new API awaitRoomRemoteEcho to ensure that the room is ready SDK side. 2024-09-17 10:59:26 +02:00
Benoit Marty
6117a23ed5 Use new API awaitRoomRemoteEcho to wait for the created room to be available. 2024-09-17 10:21:27 +02:00
bmarty
e0c24c0f1c Sync Strings from Localazy 2024-09-16 18:40:24 +00:00
Benoit Marty
8c424c63e6 Merge pull request #3467 from element-hq/feature/bma/accountCreation
Temporary account creation using Element Web.
2024-09-16 16:52:26 +02:00
ganfra
60365e46a5 Merge pull request #3461 from element-hq/feature/fga/send_failure_identity_changes
Require acknowledgement to send to a verified user if their identity changed or if a device is unverified.
2024-09-16 16:00:18 +02:00
ganfra
6c29b5c694 Send failure verified user : add some comments and logs. 2024-09-16 15:22:40 +02:00
Jorge Martin Espinosa
b91d13b466 Fix not being able to decline an invite from the room list (#3466)
* Add `InvitedRoom` to wrap Rust SDK Rooms in 'invited' membership state.

At the moment, this is a wrapper that allows us to call `Room.leave()` without having to initialise the room's timeline (which is impossible).

* Add `MatrixRoom.getInvitedRoom(roomId)` to get one of these rooms.

Also, `RustRoomFactory` now has a `createInvitedRoom` method for this.

* Adapt `AcceptDeclineInvitePresenter` to use the new APIs.
2024-09-16 13:02:20 +00:00
Benoit Marty
bed7776674 Account Creation using a WebView 2024-09-16 12:24:47 +02:00
Benoit Marty
c87353516c Merge pull request #3464 from element-hq/sync-localazy
Sync Strings
2024-09-16 11:50:11 +02:00
Jorge Martin Espinosa
03786c1fd2 Add forced logout flow when the proxy is no longer available (#3458)
* Add `MatrixClient.isSlidingSyncProxySupported` function

* Update localazy strings

* Modify `ErrorDialog` to have an `onSubmit` call, which will be used for the submit action.

Also make the title text optional and dismissing the dialog by tapping outside/going back configurable.

* Check if a forced migration to SSS is needed because the proxy is no longer available.

In that case, display the non-dismissable dialog and force the user to log out after enabling SSS.

* Enable native/simplified sliding sync by default.

* Refactor the login to make sure we:

1. Always try native/simplified sliding sync login first, if available.
2. Then, if it wasn't available or failed with an sliding sync not supported error, try with the proxy instead (either discovered proxy or forced custom one).

* Move logic to `LoggedInPresenter` and the UI to `LoggedInView`

* Update screenshots

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2024-09-16 09:13:02 +00:00
bmarty
e840974dc5 Sync Strings from Localazy 2024-09-16 00:25:04 +00:00
ganfra
e8baee3c6f Send failure verified user : set the room key recipient strategy 2024-09-13 16:41:44 +02:00
ganfra
b38f016677 Send failure verified user : resolve ui and logic 2024-09-13 16:40:07 +02:00
ganfra
ba70fbb77e Send state : introduce Failed.VerifiedUser interface. 2024-09-13 16:40:06 +02:00
ganfra
ff0ef5f093 Send failure verified user : expose new methods on MatrixRoom. 2024-09-13 16:40:06 +02:00
ganfra
d215978241 Send failure verified user : display in ActionListView 2024-09-13 16:40:06 +02:00
ganfra
37d4e586d6 Design : allow passing ListItemColor to ListItem composable to customise as you want. 2024-09-13 16:40:06 +02:00
ganfra
e37f9aa46e Send failure verified user : set the room key recipient strategy 2024-09-13 16:40:06 +02:00