Commit Graph

2945 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
82d833b434 Timeline permalink : scroll to fetched event when known 2024-04-25 17:41:10 +02:00
Benoit Marty
2b121d97ac Remove flag RoomListFilters.
This is also fixing the filter reset issue when going back to the room list.
2024-04-25 15:55:29 +02:00
Jorge Martin Espinosa
fe9b3f7cdb Always display 'lost recovery key?' option (#2745)
* Always display 'lost recovery key?' option

* Use `isLastDevice` it to display only 'enter recovery key' option for verification.

* Update strings. This should fix the wrong term 'passcode' being used in the recovery key screen title.

* Disable 'lost your recovery key?' button while the screen is in a loading state

* Update screenshots

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2024-04-25 15:28:24 +02:00
ganfra
b46f8a5c27 Timeline : rename isTimelineEmpty to hasAnyEvent 2024-04-25 15:13:19 +02:00
ganfra
cf1c728eab Timeline : makes sure all tests are passing 2024-04-25 14:35:37 +02:00
ganfra
9ffed34303 Timeline : continue to fix more tests... 2024-04-25 12:41:34 +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
354e0df824 Use Dash avatar for room with no name and no avatar. 2024-04-25 09:50:51 +02:00
Benoit Marty
49439034e4 Add screen to render Spaces (they are not supported yet) 2024-04-25 09:50:51 +02:00
Benoit Marty
1ed593926f Avoid rendering roomId on screen. 2024-04-25 09:49:58 +02:00
Benoit Marty
871265117a Add a preview with the minimum available data. 2024-04-25 09:49:05 +02:00
Benoit Marty
9adbf6c811 Introduce RoomType 2024-04-25 09:49:05 +02:00
Benoit Marty
a7a8d97188 i18n 2024-04-25 09:49:04 +02:00
ganfra
60192bd080 Timeline permalink : start updating tests 2024-04-24 21:33:20 +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
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
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
ganfra
9b83cedac4 Timeline permalink : branch permalink on event of other room 2024-04-23 18:02:12 +02:00
ganfra
1c06db1a78 Timeline permalink : add focused event modifier 2024-04-23 16:58:23 +02:00
ganfra
64d02d17bb Timeline : remove highlightedEventId to only use focusedEventId 2024-04-23 15:09:01 +02:00
ganfra
0480f8d1bc Timeline : add box around TimelineItemVirtualRow 2024-04-23 15:04:49 +02:00
ganfra
e09e23abb0 Timeline permalink : automatic focus on live when reaching end of forward pagination (and remove usage of PaginationStatus) 2024-04-23 14:24:48 +02:00
Benoit Marty
419c9a45ca Format 2024-04-23 14:09:32 +02:00
Benoit Marty
c326683be9 Add Ui test on DeveloperSettingsView 2024-04-23 13:55:28 +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
7320243d1e fix bad userId 2024-04-22 18:05:26 +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
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
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
bmarty
e37cbad059 Sync Strings from Localazy 2024-04-22 00:18:11 +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
0938935d16 Rename Preview to follow code convention 2024-04-19 14:30:45 +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