Commit graph

6621 commits

Author SHA1 Message Date
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
11aa5bbfd5 Please KtLint 2024-04-24 13:28:52 +02:00
Benoit Marty
7785e45c16 Remove dead code. 2024-04-24 13:28:11 +02:00
Benoit Marty
124638c7a7 Add KDoc. 2024-04-24 13:26:27 +02:00
Benoit Marty
cbbda81419 Code quality. 2024-04-24 11:40:09 +02:00
Benoit Marty
768d7c88bb Changelog 2024-04-24 11:38:19 +02:00
ElementBot
ab2c82498d Update screenshots 2024-04-24 11:17:23 +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
c185f0c1c0 Format 2024-04-23 14:09:32 +02:00
Benoit Marty
e1df7223bb
Merge pull request #2743 from element-hq/feature/bma/fixSettingCrash
Handle properly the migration of DefaultSessionPreferencesStore #2742
2024-04-23 14:01:06 +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
ElementBot
ec730c6368 Update screenshots 2024-04-22 16:54:15 +00:00
Benoit Marty
06f07f906a fix bad userId 2024-04-22 18:05:26 +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
c3f9d37b0b Fix test compilation issue. 2024-04-22 16:23:19 +02:00
Benoit Marty
644eebc6e4 Private 2024-04-22 16:23:18 +02:00
Benoit Marty
5914ec04da Format 2024-04-22 16:23:18 +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
8524e3626e Add Timeline item and reply preview with ambiguous display name 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
Benoit Marty
9430b18858
Merge pull request #2738 from element-hq/sync-localazy
Sync Strings
2024-04-22 16:01:14 +02:00
bmarty
68631af9a6 Sync Strings from Localazy 2024-04-22 00:18:11 +00:00
ElementBot
e4c4832387 Update screenshots 2024-04-19 16:23:43 +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
e7af09d4bb
Merge pull request #2732 from element-hq/feature/bma/moreKonsistTest
More konsist test
2024-04-19 18:00:31 +02:00
Benoit Marty
8b8c530738 Split long line 2024-04-19 15:01:30 +02:00
ElementBot
1490e40596 Update screenshots 2024-04-19 12:42:40 +00:00
Benoit Marty
ff254554c6 Add Konsist test to check preview function names. 2024-04-19 14:30:45 +02:00
Benoit Marty
74a9a54719 Rename Preview to follow code convention 2024-04-19 14:30:45 +02:00
Benoit Marty
94930bae80 Add Konsist check to ensure that 'org.jetbrains.annotations.VisibleForTesting' is not used. 2024-04-19 14:30:44 +02:00
Benoit Marty
bc16d6f81a
Merge pull request #2731 from element-hq/feature/bma/roomPreview2
Improve room preview rendering
2024-04-19 14:24:33 +02:00
Benoit Marty
6863a906ee fix typo 2024-04-19 11:27:34 +02:00
Benoit Marty
1fd71801a6 Remove useless case. If user is invited, roomInfo will be present. 2024-04-19 11:26:35 +02:00
Benoit Marty
87f89244a6 Avoid getting roomInfo again. Also add a test to cover the case of non-null inviter. 2024-04-19 10:33:19 +02:00
Benoit Marty
cf49677ffa Remove empty line and ensure check.sh script run ktlint. 2024-04-19 10:02:39 +02:00
Benoit Marty
f1668b8abe Update doc. 2024-04-18 20:13:10 +02:00