Commit Graph

8369 Commits

Author SHA1 Message Date
Benoit Marty
08907ea0c3 Add unit test on SessionPathsProvider 2024-09-18 17:16:06 +02:00
Benoit Marty
888d3420d7 Use aSessionData() from the test module.
And fix typo.
2024-09-18 17:16:06 +02:00
Benoit Marty
f91d0688d8 Add unit test on MatrixTimelineDiffProcessor 2024-09-18 17:16:06 +02:00
Benoit Marty
98abb7827e Fix typo 2024-09-18 17:16:06 +02:00
Benoit Marty
61eb88d66b Add unit test on toSessionData 2024-09-18 17:16:06 +02:00
Benoit Marty
6f1b38aa6b Add unit test on DefaultPassphraseGenerator 2024-09-18 17:16:06 +02:00
Benoit Marty
31fe8dfb59 Add unit test on DefaultUserServerResolver 2024-09-18 17:16:06 +02:00
Benoit Marty
b5af8387b7 Exclude RoomListEntriesUpdate.describe() from coverage, it's only used to debug the app. 2024-09-18 17:16:06 +02:00
Benoit Marty
4eea52d2cd Add missing test for RoomListEntriesUpdate.Reset 2024-09-18 17:16:06 +02:00
Benoit Marty
5148191261 Add unit test on PollKind mapper 2024-09-18 17:16:06 +02:00
Benoit Marty
95153bc5b9 Add unit test on LoadingIndicatorsPostProcessor 2024-09-18 17:16:06 +02:00
Benoit Marty
10547b8291 Add unit test on LastForwardIndicatorsPostProcessor 2024-09-18 17:16:06 +02:00
Benoit Marty
51fe1edd8d Fix compilation issue after rebase. 2024-09-18 17:16:06 +02:00
Benoit Marty
d6899bcc16 Add unit test on RoomMemberMapper 2024-09-18 17:16:06 +02:00
Benoit Marty
d66b0133fd Add unit test on AssetType.toInner() 2024-09-18 17:16:06 +02:00
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
874fb491ab Merge pull request #3488 from element-hq/feature/bma/cleanupAndFixtures
Cleanup and fixtures for SDK classes.
2024-09-18 15:51:32 +02:00
ganfra
212b948399 Merge pull request #3485 from element-hq/feature/fga/iterate_send_failure_verification
Iterate send failure verification
2024-09-18 15:04:34 +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
406c000ecd Merge pull request #3481 from element-hq/feature/bma/testAccounteDeactivationView
Add tests on AccountDeactivationView
2024-09-18 13:58:18 +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
ganfra
3f0ecc6674 Resolve send failure verification : clearer message when unsigned device is from you 2024-09-18 11:30:50 +02:00
Benoit Marty
9b9ce9e93a Add tests on AccountDeactivationView 2024-09-17 21:17:04 +02:00
Benoit Marty
aa696fb158 Changelog for version 0.6.2 2024-09-17 20:33:16 +02:00
Benoit Marty
4ec15284e7 version++ 2024-09-17 20:06:10 +02:00