Commit graph

2448 commits

Author SHA1 Message Date
Benoit Marty
b7970b2db8 Map all replyTo data and add preview for loading and erorr case. 2024-04-29 17:41:25 +02:00
Benoit Marty
49dd4ad803 Ensure editMessage, enterSpecialMode and replyMessage are called on the current timeline. 2024-04-29 15:50:56 +02:00
Benoit Marty
ddb00a2c51 Add log in case of error. 2024-04-29 15:48:58 +02:00
Benoit Marty
0190d5da45 Remove unnecessary default value. 2024-04-29 14:28:04 +02:00
Benoit Marty
37d0b9c6ef No need to keep innerTimeline as a class member. 2024-04-29 14:27:07 +02:00
Benoit Marty
8eccd1b6e1 Code optimization. 2024-04-29 14:20:46 +02:00
Benoit Marty
a8d66ec7e2 Add documentation on new API. 2024-04-29 14:16:12 +02:00
Benoit Marty
d6e02ea503 Test TimelineController 2024-04-26 18:27:10 +02:00
Benoit Marty
a4c6e6c281 Add mapping on FocusEventException.
Extract FocusRequestState to its own file and add preview.
2024-04-26 16:40:09 +02:00
Benoit Marty
636c024d9a Fix detekt issues 2024-04-26 15:23:24 +02:00
Benoit Marty
f4f5888d5b Move LiveTimelineProvider to the test module. 2024-04-26 14:47:01 +02:00
Benoit Marty
b8cb2d92e9 Add missing color preview. 2024-04-26 14:30:51 +02:00
Benoit Marty
300d3e34b1 Format and cleanup files 2024-04-26 13:57:08 +02:00
Benoit Marty
94df7308ab Fix compilation issue (develop has been merged here) 2024-04-26 12:55:08 +02:00
Benoit Marty
2c8abbed0c Merge branch 'develop' into feature/fga/permalink_timeline 2024-04-26 12:50:38 +02:00
Benoit Marty
42b9c35adb Fix test on UtdTrackerTest 2024-04-26 09:22:08 +02:00
Benoit Marty
93709f33b8 Fix false positive
A single Unit expression is unnecessary and can safely be removed. [OptionalUnit]
2024-04-26 09:17:22 +02:00
Benoit Marty
1a64901ee0 SDK 0.2.16: fix compilation issue 2024-04-26 09:11:30 +02:00
ganfra
7b4fa146e5 Timeline : try to get better forward pagination. 2024-04-25 23:34:04 +02:00
Benoit Marty
268c196e35 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
7397df806b
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
0e98659cc9 Timeline : do not cancel pagination to avoid stuck timeline. 2024-04-25 15:01:18 +02:00
ganfra
97b9d75a0d Timeline : makes sure all tests are passing 2024-04-25 14:35:37 +02:00
Benoit Marty
5951182bdf Fix issue when building previews, roomId must be unique 2024-04-25 12:39:25 +02:00
Benoit Marty
8272b7a16c Use fallback name in this case. 2024-04-25 12:29:44 +02:00
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
ganfra
bf87b975fc Timeline permalink : start updating tests 2024-04-24 21:33:20 +02:00
ganfra
fed1733cb5 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
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
ganfra
a6d8209407 Timeline : exposes same methods as the rust type and use them by default on liveTimeline 2024-04-24 13:37:14 +02:00
ganfra
7094955bc9 Timeline : use latest api 2024-04-24 12:34:52 +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
ganfra
20e172c2a6 Timeline permalink : add focused event modifier 2024-04-23 16:58:23 +02:00
ganfra
b1dd225648 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
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
ganfra
0d7cffe400 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
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