Commit Graph

6621 Commits

Author SHA1 Message Date
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
Benoit Marty
c83712ca91 Merge pull request #2749 from element-hq/feature/bma/appMigration
Application migration
2024-04-24 14:22:12 +02:00
Benoit Marty
41de39bac3 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
1db515ee17 Please KtLint 2024-04-24 13:28:52 +02:00
Benoit Marty
b71a967c0e Remove dead code. 2024-04-24 13:28:11 +02:00
Benoit Marty
8d0aa68f9a Add KDoc. 2024-04-24 13:26:27 +02:00
Benoit Marty
46544b1b45 Code quality. 2024-04-24 11:40:09 +02:00
Benoit Marty
06756c33ed Changelog 2024-04-24 11:38:19 +02:00
ElementBot
8cfa40f21a Update screenshots 2024-04-24 11:17:23 +02:00
Benoit Marty
f6b5b8419b 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
5fc95f56ab 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
419c9a45ca Format 2024-04-23 14:09:32 +02:00
Benoit Marty
f1cc614e99 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
c326683be9 Add Ui test on DeveloperSettingsView 2024-04-23 13:55:28 +02:00
Benoit Marty
217ceff9f7 Handle properly the migration of DefaultSessionPreferencesStore #2742 2024-04-23 11:51:13 +02:00
ElementBot
205979b3f7 Update screenshots 2024-04-22 16:54:15 +00:00
Benoit Marty
7320243d1e fix bad userId 2024-04-22 18:05:26 +02:00
Benoit Marty
5cc4d99679 Fix test 2024-04-22 16:56:31 +02:00
Benoit Marty
ca3406c0f0 Import string. 2024-04-22 16:23:19 +02:00
Benoit Marty
e10152a560 Fix test compilation issue. 2024-04-22 16:23:19 +02:00
Benoit Marty
4909451aa5 Private 2024-04-22 16:23:18 +02:00
Benoit Marty
117856a2ab Format 2024-04-22 16:23:18 +02:00
Benoit Marty
9e59c8a854 Reply: render sender name of replied event on 1 line only. 2024-04-22 16:23:18 +02:00
Benoit Marty
e26fe58fd3 Improve display name disambiguation rendering #2722 2024-04-22 16:23:17 +02:00
Benoit Marty
0d665388b8 Add Timeline item and reply preview with ambiguous display name 2024-04-22 16:23:17 +02:00
Benoit Marty
de2fb77fdc Fix test 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
7681a892b1 Use display name in state event rendering #2722 2024-04-22 16:23:16 +02:00
Benoit Marty
ffc3e03995 Use aProfileTimelineDetails() 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
d7f0d23634 Merge pull request #2733 from element-hq/feature/bma/disableKnock
Disable knock
2024-04-22 16:22:48 +02:00
Benoit Marty
a2970f83f8 Merge pull request #2738 from element-hq/sync-localazy
Sync Strings
2024-04-22 16:01:14 +02:00
bmarty
e37cbad059 Sync Strings from Localazy 2024-04-22 00:18:11 +00:00
ElementBot
c4b6a6aa4d Update screenshots 2024-04-19 16:23:43 +00:00
Benoit Marty
875890f503 Move OnboardingBackground to a sub package 2024-04-19 18:11:14 +02:00
Benoit Marty
7133b821db Fix missing background issue. 2024-04-19 18:11:14 +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
Benoit Marty
f81f459b84 Merge pull request #2732 from element-hq/feature/bma/moreKonsistTest
More konsist test
2024-04-19 18:00:31 +02:00
Benoit Marty
cc48ea98e4 Split long line 2024-04-19 15:01:30 +02:00
ElementBot
838971b748 Update screenshots 2024-04-19 12:42:40 +00:00
Benoit Marty
7f38e14066 Add Konsist test to check preview function names. 2024-04-19 14:30:45 +02:00
Benoit Marty
0938935d16 Rename Preview to follow code convention 2024-04-19 14:30:45 +02:00
Benoit Marty
35e0b479f1 Add Konsist check to ensure that 'org.jetbrains.annotations.VisibleForTesting' is not used. 2024-04-19 14:30:44 +02:00
Benoit Marty
2099676a22 Merge pull request #2731 from element-hq/feature/bma/roomPreview2
Improve room preview rendering
2024-04-19 14:24:33 +02:00
Benoit Marty
84730e839a fix typo 2024-04-19 11:27:34 +02:00
Benoit Marty
a1c876d32e Remove useless case. If user is invited, roomInfo will be present. 2024-04-19 11:26:35 +02:00
Benoit Marty
681af0d22f 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
cdcd5c2d5e Remove empty line and ensure check.sh script run ktlint. 2024-04-19 10:02:39 +02:00
Benoit Marty
3a5c6fbb5a Update doc. 2024-04-18 20:13:10 +02:00