Commit Graph

488 Commits

Author SHA1 Message Date
Benoit Marty
21ddeb00fe Format and cleanup files 2024-04-26 13:57:08 +02:00
Benoit Marty
a11bfb5d29 Merge branch 'develop' into feature/fga/permalink_timeline 2024-04-26 12:50:38 +02:00
ganfra
345d4c7da3 Timeline : try to get better forward pagination. 2024-04-25 23:34:04 +02:00
ganfra
cf1c728eab Timeline : makes sure all tests are passing 2024-04-25 14:35:37 +02:00
Benoit Marty
f1a31e3b3c Ensure roomId are not rendered in the UI.
Add preview to see the effect.
Use RoomAvatar data fallback everywhere, to not use roomId (`!` char) for the avatar initial, but rather `#`.
2024-04-25 11:52:40 +02:00
Benoit Marty
9adbf6c811 Introduce RoomType 2024-04-25 09:49:05 +02:00
ganfra
bb0ba5c4bf Timeline : makes sure to use the right timeline when making some action (edit, reply, reaction) 2024-04-24 16:42:35 +02:00
Jorge Martin Espinosa
2cc124bda2 Remove SessionData.needsVerification as the source of truth for session verification status (#2748)
* Remove `SessionData.needsVerification` as the source of truth for session verification status.

- Use the Rust SDK `EncryptionService.verificationState()` instead, but always waiting for the first 'known' result (either verified or not, discarding 'unknown').
- Add a workaround in the super rare case when reading this value gets stuck somehow. We'll assume the user is not verified in that case.
- Make `DefaultFtueService.getNextStep` and dependent checks `suspend`.
- Make the `skip` button use a value in the session preferences instead.

* Log exception when the verification status can't be loaded

Co-authored-by: Benoit Marty <benoit@matrix.org>

* Fix review comments

---------

Co-authored-by: Benoit Marty <benoit@matrix.org>
2024-04-24 13:55:25 +00:00
ganfra
b40f01a634 Timeline : exposes same methods as the rust type and use them by default on liveTimeline 2024-04-24 13:37:14 +02:00
ganfra
f56ac869ff Timeline permalink : continue to iterate (try a strategy to avoid forward insertion to "auto-scroll") 2024-04-23 13:30:55 +02:00
Benoit Marty
e26fe58fd3 Improve display name disambiguation rendering #2722 2024-04-22 16:23:17 +02:00
Benoit Marty
7dfdf45c6e Fix test compilation issue. 2024-04-22 16:23:16 +02:00
Benoit Marty
188f92fecc Format state Event: use disambiguated Display name #2722.
- Rename some parameter and val from `senderDisplayName` (and consort) to `senderDisambiguatedDisplayName`.
- In `InReplyToDetails`, replace `senderDisplayName` and `senderAvatarUrl` by `senderProfile`.
2024-04-22 16:23:15 +02:00
Benoit Marty
70d7b5a61f Implement Knock action (until the SDK level) 2024-04-19 18:11:13 +02:00
Benoit Marty
025c6294c2 Change API MatrixClient.joinRoom(roomId: RoomId): Result<RoomId> to MatrixClient.joinRoom(roomId: RoomId): Result<Unit> 2024-04-19 18:11:13 +02:00
ganfra
6808edda86 Merge develop into feature/fga/permalink_timeline 2024-04-18 15:40:17 +02:00
Benoit Marty
9c6cee10b8 String -> RoomAlias 2024-04-18 00:43:34 +02:00
Benoit Marty
d67a9da112 Remove extra space. 2024-04-18 00:03:21 +02:00
Benoit Marty
57d5ffa97a Update extension. 2024-04-18 00:03:17 +02:00
Benoit Marty
f37ef1e0cd Handle navigation to the same room. 2024-04-18 00:03:16 +02:00
Benoit Marty
c0bd527486 Resolve RoomId in RoomFlowNode. 2024-04-18 00:03:15 +02:00
Benoit Marty
c1bb910dbd Simplify PermalinkData, now that we have RoomIdOrAlias interface. 2024-04-18 00:03:15 +02:00
Benoit Marty
c1188ebb2d Alias permalink navigation - WIP 2024-04-18 00:03:14 +02:00
Benoit Marty
a602849ec5 Increase usage of RoomAlias 2024-04-18 00:02:22 +02:00
Benoit Marty
fe7dfcb09b Use RoomId and RoomAlias in MatrixRoomInfo 2024-04-18 00:02:10 +02:00
Benoit Marty
dca3d56aa7 Introduce value class RoomAlias 2024-04-18 00:02:09 +02:00
Benoit Marty
fb3d49cc2f Add MatrixClient.getRoomPreview method. 2024-04-18 00:00:36 +02:00
Benoit Marty
0550da3e3b Add MatrixClient.resolveRoomAlias method. 2024-04-18 00:00:36 +02:00
ganfra
bbb92bcc87 Merge pull request #2714 from element-hq/feature/fga/room_list_invites
[Feature] Room list invites
2024-04-17 23:04:31 +02:00
ganfra
e8bc8c1125 Room list invites: address some remarks and add small tests 2024-04-17 22:02:44 +02:00
ganfra
e4174f2792 Timeline : start reworking timeline apis 2024-04-17 21:32:02 +02:00
ganfra
1cdf561688 RoomList : add invite filter 2024-04-15 22:50:43 +02:00
Benoit Marty
9b6ab9b484 Parse permalink using parseMatrixEntityFrom.
Create new PermalinkData type for link to Events.
Keep matrixToConverter for now to first convert to matrix.to link. At some point it may be done by the SDK.
Remove parse(Uri)
2024-04-15 17:47:40 +02:00
ganfra
2c6620a199 Room list : activate merged invites in Client 2024-04-15 16:58:07 +02:00
Benoit Marty
4c7e66e928 Use SDK API to build room and event permalinks. 2024-04-15 16:05:12 +02:00
ganfra
8b80b2859f Room navigation : some clean up 2024-04-12 15:58:15 +02:00
ganfra
79c6385edb Room navigation : fix tests on invite after the refactoring 2024-04-11 16:50:09 +02:00
ganfra
d07df2319b Merge branch 'develop' into feature/fga/room_navigation 2024-04-10 16:55:55 +02:00
ganfra
fc20b7399a Room navigation : more reliable roomInfoFlow method 2024-04-10 11:41:06 +02:00
Jorge Martin Espinosa
c8b5458878 Add SessionData.needsVerification field (#2672)
* Add `SessionData.needsVerification`:
  - Allows us to add a skip button for debug builds.
  - We can have the verification state almost instantly.
  - It doesn't depend on network availability to know the verification state and display the UI.
* Add DB migration.
- Make the skip button in the verification flow skip the whole flow including the completed screen.
- Save the session as verified in `RustEncryptionService.recover(recoveryKey)`.
* Enforce session verification for existing users too.
* Fix verification confirmed screen subtitle (typo in id, was using the wrong string)
* Update screenshots

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2024-04-09 17:28:12 +02:00
Benoit Marty
b68ecbf0c4 Add suggestion of users when starting a Chat #2634 2024-04-08 13:53:55 +02:00
Benoit Marty
124426e44b Add functions trackRecentlyVisitedRoom and getRecentlyVisitedRooms 2024-04-08 11:40:41 +02:00
ganfra
64ef638f26 Room navigation : do not replay RoomMembership Changes 2024-04-05 17:57:38 +02:00
Benoit Marty
7974d4e972 Move usersWithRole() function to a dedicated file and make it a documented extension of MatrixRoom. 2024-04-05 12:43:41 +02:00
Benoit Marty
c4e8f1547e Fix documentation 2024-04-05 12:07:11 +02:00
Benoit Marty
e2e2217e58 Remove blank line 2024-04-05 10:52:44 +02:00
ganfra
abca950636 Room navigation : add a JoinedRoomFlowNode so we use RoomFlowNode for managing different routes 2024-04-04 20:36:16 +02:00
Benoit Marty
fcc02f323c Member role: only count and display joined members. 2024-04-04 19:17:36 +02:00
Benoit Marty
ecaeb4b257 Avoid using fixture method in production code. 2024-04-04 17:48:04 +02:00
Benoit Marty
68ababa0be Merge pull request #2653 from element-hq/feature/bma/copyPermalink
Copy permalink
2024-04-03 17:38:38 +02:00