Commit Graph

2992 Commits

Author SHA1 Message Date
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
eae580422d Merge pull request #3451 from element-hq/feature/valere/invisible_crypto_feature_flag
Feature/valere/invisible crypto feature flag
2024-09-12 16:29:21 +02:00
Benoit Marty
4cfda8e4aa Rename isInit to isTimelineInitialized for clarity. 2024-09-12 16:27:52 +02:00
Valere
d99509e884 crypto: Add configuration flag to enable invisible crypto 2024-09-12 14:53:59 +02:00
Valere
5dec472f9b Doc | Remove outdated comment about flags default values 2024-09-12 11:51:43 +02:00
Benoit Marty
ba4ef08756 Remove process extension and provide isInit parameter to the processors. 2024-09-12 09:21:53 +02:00
Benoit Marty
6087b15560 Fix filtering of Event at the beginning of DM. 2024-09-12 09:21:53 +02:00
Benoit Marty
6645fd27ce Fix detekt false positive. 2024-09-11 20:41:58 +02:00
Benoit Marty
16efeb1937 Fix API break 2024-09-11 20:10:48 +02:00
Benoit Marty
9cbc1805dd Merge pull request #3442 from element-hq/feature/bma/deviceId
DeviceId and cleanup.
2024-09-11 11:01:31 +02:00
Benoit Marty
ac19d04122 RustMatrixRoom do not need the SessionData anymore. 2024-09-11 10:03:22 +02:00
Benoit Marty
626fa4e495 Introduce value class "DeviceId" 2024-09-11 09:52:25 +02:00
ganfra
c88cf9cc8c Pinned messages : enabled by default 2024-09-10 13:56:00 +02:00
Jorge Martin Espinosa
8154aa3319 Add banner for optional migration to simplified sliding sync (#3429)
* Add banner for optional migration to native sliding sync

- Add `MatrixClient.isNativeSlidingSyncSupported()` and `MatrixClient.isUsingNativeSlidingSync` to check whether the home server supports native sliding sync and we're already using it.
- Add `NativeSlidingSyncMigrationBanner` composable to the `RoomList` screen when the home server supports native sliding sync but the current session is not using it.
- Add an extra logout successful action to the logout flow, create `EnableNativeSlidingSyncUseCase` so it can be used there.

* Update screenshots

* Make sure the sliding sync migration banner has lower priority than the encryption setup ones

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2024-09-09 18:13:19 +02:00
ganfra
7ed5ee9186 Merge branch 'develop' into feature/fga/timeline_utd 2024-09-09 15:40:26 +02:00
ganfra
a556557881 Timeline : remove the encrypted history banner for now. 2024-09-09 11:20:50 +02:00
ganfra
82a31d3ede Self verification : makes sure cancellation works properly 2024-09-09 10:30:35 +02:00
ganfra
2be46edc17 Self verification : makes sure only one controller is created 2024-09-09 10:30:17 +02:00
Jorge Martin Espinosa
daa5130300 Wait for a room with joined state in /sync after creating it (#3421) 2024-09-09 09:36:49 +02:00
Benoit Marty
8ff40ac6fb Merge pull request #3422 from element-hq/feature/bma/agpl
Change license to AGPL
2024-09-06 20:40:28 +02:00
Benoit Marty
62a6e916a6 Migrate license to AGPL - XML files. 2024-09-06 17:43:35 +02:00
Benoit Marty
2b016227e9 Migrate license to AGPL.
Run script `uv run license-editor --repository ../element-x-android`
2024-09-06 17:19:19 +02:00
Jorge Martin Espinosa
1b79887c9d Fix new logins with Simplified SS using the proxy (#3417)
* Fix new logins with Simplified SS using the proxy

* Make sure `ClientBuilderSlidingSync.Restored` is always used for restored sessions
2024-09-06 15:09:36 +00:00
ganfra
e5c81db224 Merge pull request #3392 from element-hq/feature/fga/pinned_messages_list
[Feature] Pinned messages list
2024-09-06 16:32:44 +02:00
Benoit Marty
9693a248f7 Add missing test for AppMigration06 2024-09-06 11:51:59 +02:00
Benoit Marty
c51d098679 Add missing test for AppMigration05 2024-09-06 11:41:13 +02:00
ganfra
a37a6d249f Pinned messages list : improve and fix code after PR review. 2024-09-05 17:40:50 +02:00
ganfra
23534e6595 Merge pull request #3393 from element-hq/feature/fga/update_rust_sdk_0.2.42
Rust sdk : update to 0.2.42
2024-09-04 18:26:38 +02:00
Benoit Marty
249e6e2925 Merge pull request #3388 from element-hq/feature/bma/pushEndpoint
Unified push endpoint: do not fallback to default endpoint in case of failure and add troubleshoot test.
2024-09-04 18:19:34 +02:00
ganfra
4fe142c624 Rust sdk : update to 0.2.42 2024-09-04 16:37:46 +02:00
ganfra
ff3646ead0 Pinned messages: clean code 2024-09-04 14:27:18 +02:00
ganfra
9936dbc464 Merge branch 'develop' into feature/fga/pinned_messages_list 2024-09-04 14:11:53 +02:00
Benoit Marty
7db5ac8195 Fix the test according to the behavior change. 2024-09-04 12:23:52 +02:00
ganfra
5d18b1a8fa Pinned messages list : fix all tests after changes 2024-09-04 12:09:17 +02:00
Benoit Marty
264d1bc694 Let UnifiedPushProvider use UnifiedPushCurrentUserPushConfigProvider 2024-09-04 11:42:40 +02:00
Benoit Marty
3e74fa05d7 Fix injection issue. 2024-09-04 11:31:46 +02:00
Benoit Marty
22f9e5515c Fix quality issue. 2024-09-04 11:16:20 +02:00
Benoit Marty
35b019318e Imporve logs. 2024-09-04 11:12:21 +02:00
Benoit Marty
90352bd1ad Remove const val PUSH_GATEWAY_PATH, it makes the code more complex for no added value. 2024-09-04 11:09:27 +02:00
Benoit Marty
6eb5610bcc Add missing test on reset methods. 2024-09-04 10:57:14 +02:00
Jorge Martin Espinosa
4fbf98700a Make sure to save the tokens the Client might return when its session is restored (#3378)
* Use `ClientSessionDelegate` to ensure tokens are always updated.

Refreshed tokens on client restoration might not have been stored to disk if the token refresh happened before `RustMatrixClient` was built and the `ClientDelegate` was set in it.

Using `ClientSessionDelegate` should ensure the tokens refreshed callback is called at any point in time.

* Improve how assigning the Client works, fix docs

* Fix review comments
2024-09-04 10:54:31 +02:00
Benoit Marty
0423c36e08 Always use the custom url, even if no Matrix gateway is detected. 2024-09-04 10:48:31 +02:00
renovate[bot]
5ba88dc5b0 Update dependency org.matrix.rustcomponents:sdk-android to v0.2.41 (#3384)
* Introduce value class UniqueId.

* Allow reactions on non-sent Event, the SDK can now handle it.

Also the SDK will manage local echo for reactions.

* Update dependency org.matrix.rustcomponents:sdk-android to v0.2.41

* Fixes after SDK upgrade:

- Use `ClientBuilderSlidingSync` to set `SlidingSyncVersionBuilder` in `RustMatrixClientFactory`.
- `Room.toggleReaction(emoji: String, eventId: EventId)` is now `Room.toggleReaction(emoji: String, uniqueId: UniqueId)`, since reactions can now be applied to local echoes too in the SDK.

* Rename exception case

* Fix wrong error case being used in test

---------

Co-authored-by: Benoit Marty <benoit@matrix.org>
Co-authored-by: Benoit Marty <benoitm@matrix.org>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jorge Martín <jorgem@element.io>
2024-09-03 20:09:33 +02:00
Jorge Martin Espinosa
08d05647af Make pinned events required state in SlidingSync (#3385)
This is needed to always have the pinned events of a room as soon as we open it.
2024-09-03 17:44:48 +02:00
Benoit Marty
0e5ecf2d07 Merge pull request #3366 from element-hq/feature/bma/fixAvatarLoading
Fix avatar sometimes not loading
2024-09-03 10:47:53 +02:00
Benoit Marty
3efb371d34 Merge pull request #3370 from element-hq/feature/bma/cacheFile
Provide distinct cache directory to the Rust SDK.
2024-09-03 10:27:47 +02:00
Benoit Marty
b062431f1b Fix test compilation issue. 2024-09-03 10:01:45 +02:00