Commit graph

2413 commits

Author SHA1 Message Date
Benoit Marty
ce7bb11724 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
3d29d8729a Move fun aRoomSummaryDetails() to a regular Preview Provider 2024-04-25 10:10:55 +02:00
Benoit Marty
2c2bf7c687 Add screen to render Spaces (they are not supported yet) 2024-04-25 09:50:51 +02:00
Benoit Marty
132b4e87ea Avoid rendering roomId on screen. 2024-04-25 09:49:58 +02:00
Benoit Marty
d4b7f01a06 Introduce RoomType 2024-04-25 09:49:05 +02:00
Jorge Martin Espinosa
1de6797673
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
Benoit Marty
a27afafb88
Merge pull request #2749 from element-hq/feature/bma/appMigration
Application migration
2024-04-24 14:22:12 +02:00
Benoit Marty
3438b9872d
Merge pull request #2744 from element-hq/feature/bma/testPreferenceTextField
Add Ui test on DeveloperSettingsView
2024-04-24 14:17:12 +02:00
Benoit Marty
7bbcb719d5 Implement a migration mechanism to handle internal stuff which need to occur during application upgrade.
Remove VectorFileLogger, it was dead code.
2024-04-24 11:17:23 +02:00
Benoit Marty
8637a97cac
Merge pull request #2739 from element-hq/feature/bma/displayNameInStateEvent
Display name in state event and improve display name disambiguation rendering
2024-04-23 14:12:33 +02:00
Benoit Marty
d06ec9099b Add Ui test on DeveloperSettingsView 2024-04-23 13:55:28 +02:00
Benoit Marty
320e7145ca Handle properly the migration of DefaultSessionPreferencesStore #2742 2024-04-23 11:51:13 +02:00
Benoit Marty
12cd1ce5ee Fix test 2024-04-22 16:56:31 +02:00
Benoit Marty
d1fdbeb8bb Import string. 2024-04-22 16:23:19 +02:00
Benoit Marty
bcbd989ec0 Reply: render sender name of replied event on 1 line only. 2024-04-22 16:23:18 +02:00
Benoit Marty
237ba3d727 Improve display name disambiguation rendering #2722 2024-04-22 16:23:17 +02:00
Benoit Marty
f9c8c8aa21 Fix test 2024-04-22 16:23:17 +02:00
Benoit Marty
ac9689fae9 Fix test compilation issue. 2024-04-22 16:23:16 +02:00
Benoit Marty
1d6b479d38 Use display name in state event rendering #2722 2024-04-22 16:23:16 +02:00
Benoit Marty
461f144585 Use aProfileTimelineDetails() 2024-04-22 16:23:16 +02:00
Benoit Marty
03abfcaadb 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
e0d40ec0a4
Merge pull request #2733 from element-hq/feature/bma/disableKnock
Disable knock
2024-04-22 16:22:48 +02:00
bmarty
68631af9a6 Sync Strings from Localazy 2024-04-22 00:18:11 +00:00
Benoit Marty
6b2a4f8cc0 Move OnboardingBackground to a sub package 2024-04-19 18:11:14 +02:00
Benoit Marty
52f7b29577 Fix missing background issue. 2024-04-19 18:11:14 +02:00
Benoit Marty
797c912ccd Implement Knock action (until the SDK level) 2024-04-19 18:11:13 +02:00
Benoit Marty
f29e79d64e Change API MatrixClient.joinRoom(roomId: RoomId): Result<RoomId> to MatrixClient.joinRoom(roomId: RoomId): Result<Unit> 2024-04-19 18:11:13 +02:00
Benoit Marty
74a9a54719 Rename Preview to follow code convention 2024-04-19 14:30:45 +02:00
Benoit Marty
f1668b8abe Update doc. 2024-04-18 20:13:10 +02:00
Benoit Marty
4489df1085 Apply Gradient Background to JoinRoomView and RoomAliasResolverView. 2024-04-18 17:47:20 +02:00
Benoit Marty
57870fa624 Gradient Background 2024-04-18 17:32:06 +02:00
Benoit Marty
64e22bc2f1 Use now available SDK API. 2024-04-18 15:45:48 +02:00
Benoit Marty
49fea8b7ae Fix vertical alignment. 2024-04-18 15:22:30 +02:00
Benoit Marty
473f0e8395 Let JoinRoomView render the InviteSender 2024-04-18 15:19:03 +02:00
Benoit Marty
2974156ee1 Move InviteSender to :library:matrixui module. 2024-04-18 15:00:49 +02:00
Benoit Marty
9c7c66b222 Fix padding issue on RoomPreviewMembersCountMolecule 2024-04-18 11:35:54 +02:00
Benoit Marty
4e55c9aa4e Please ktlint 2024-04-18 10:57:18 +02:00
Benoit Marty
b7d4fa655e Readability 2024-04-18 09:04:06 +02:00
Benoit Marty
7528bb7ffa Add Modifier and preview for RoomPreviewMembersCountMolecule. Also increase end padding to ensure that rendering is correct for big numbers. 2024-04-18 01:27:33 +02:00
Benoit Marty
35de787326 Fix test. 2024-04-18 00:56:46 +02:00
Benoit Marty
5aa0ffea34 String -> RoomAlias 2024-04-18 00:43:34 +02:00
Benoit Marty
1b8dd2cded Create Atom and Molecule for RoomPreview screens 2024-04-18 00:04:26 +02:00
Benoit Marty
d0fdaaeb86 Move ContentScaffold to design system and rename to RoomPreviewOrganism 2024-04-18 00:04:25 +02:00
Benoit Marty
b8d87d4e75 Ignore too generic exceptions (temporary code). 2024-04-18 00:03:21 +02:00
Benoit Marty
c9580ad1e5 Remove extra space. 2024-04-18 00:03:21 +02:00
Benoit Marty
2eb545cd11 Add test to JoinRoomPresenter to cover RoomPreview 2024-04-18 00:03:19 +02:00
Benoit Marty
12b230594b Fix JoinRoomPresenterTest 2024-04-18 00:03:19 +02:00
Benoit Marty
6a125bbb1b Add test on RoomAliasResolverPresenter 2024-04-18 00:03:18 +02:00
Benoit Marty
7a7fb2aa54 Comment out SDK usage. 2024-04-18 00:03:18 +02:00
Benoit Marty
b7d214fa56 Update extension. 2024-04-18 00:03:17 +02:00