Commit graph

1112 commits

Author SHA1 Message Date
Jorge Martin Espinosa
72ab632233
Restore MarkdownTextInput contents (#2902)
* Restore `MarkdownTextInput` contents: create a `MarkdownTextInputStateSaver` and use it to save and restore the text and selection.

* Add default text flags to the markdown composer
2024-05-23 14:59:08 +02:00
Benoit Marty
9db215c2a9 Cleanup dependencies about junit. 2024-05-21 18:14:32 +02:00
Jorge Martin Espinosa
880ebb4de8
Plain text editor implementation based on markdown input (#2840)
* Add plain text editor based on markdown input
- Fix autofocus of message composer.
- Remove `Message` data class, fetch the details in `MessagesPresenter` instead.
- Remove `enable rich text` option from advanced settings, set it as a build configuration instead.
* Fix MentionSpanProvider
* Bump RTE library to released `v2.37.3`

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2024-05-21 13:58:53 +02:00
Jorge Martin Espinosa
8bd9880c23
Use member display names in membership timeline item text (#2883)
* Use member display names in membership timeline item text
2024-05-21 08:26:11 +00:00
Benoit Marty
d2d835080e
Merge pull request #2877 from element-hq/sync-localazy
Sync Strings
2024-05-21 09:22:16 +02:00
Jorge Martin Espinosa
4919cd69b1
When linkifying HTML messages, give priority to explicit link tags (#2879)
* When linkifying HTML messages, give priority to explicit link tags
2024-05-20 13:09:37 +02:00
bmarty
83a8a631f2 Sync Strings from Localazy 2024-05-20 00:23:05 +00:00
Benoit Marty
38d6e08db4 Format 2024-05-16 11:07:31 +02:00
Benoit Marty
f7a3b5df77 Add test about redacting an Event that has not been sent #2855 2024-05-16 10:49:14 +02:00
Jorge Martin Espinosa
ef38535665
UX cleanup: reorder text composer actions (#2847)
* UX cleanup: reorder text composer actions

* Update screenshots

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2024-05-15 10:28:06 +02:00
Benoit Marty
4f74dd4c93
Merge pull request #2843 from element-hq/feature/bma/joinRoomVia
Provide serverNames when available and fix issue around analytics
2024-05-14 17:17:59 +02:00
Benoit Marty
22329b9678 Provide serverNames when available and fix issue around analytics 2024-05-14 15:58:10 +02:00
Benoit Marty
5f1b51d5f2 Sync strings again after fix on Localazy. 2024-05-13 15:21:08 +02:00
bmarty
0910da0a14 Sync Strings from Localazy 2024-05-13 12:47:48 +00:00
Jorge Martin Espinosa
46b22d7db7
UX cleanup: room details (#2816)
* UX cleanup: room details screen

Add new CTA buttons for Invite and Call actions

* Update screenshots

* Fix maestro

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2024-05-08 11:42:33 +02:00
Jorge Martin Espinosa
5c59f6c20f
Enforce mandatory session verification only for new logins (#2811)
* Enforce mandatory session verification only for new logins

- Creates `AppMigration` base interface as a way to isolate migration logic, app migrations must implement this interface.
- Creates `AppMigration01` with the existing logs removal migration and `AppMigration02` with the logic to allow existing sessions to skip verification.
- Add `DefaultSessionPreferencesStoreFactory.remove(sessionId)` to allow a ephemeral session store access to exist outside the `SessionScope` for this new migration.

* Fix tests

* Add more tests.

This also includes creating several abstractions.

* Review changes.

- Make `orderedMigrations` a class property, `migrations` just a constructor parameter to avoid incorrect usages.
- Create `lastMigration` property too, use it instead of `MIGRATION_VERSION`.
2024-05-07 14:06:34 +00:00
bmarty
68fdaef8b8 Sync Strings from Localazy 2024-05-06 00:19:35 +00:00
Benoit Marty
0476bd95c8 Open user profile and room with event from permalink 2024-05-02 12:25:21 +02:00
Joe Groocock
06a519ef98
Pretty-print event JSON in debug view (#2771)
* Pretty-print event JSON in debug view

Significantly improves readability

Signed-off-by: Joe Groocock <me@frebib.net>

* Update screenshots

Signed-off-by: Joe Groocock <me@frebib.net>

---------

Signed-off-by: Joe Groocock <me@frebib.net>
Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2024-04-30 16:08:04 +02:00
Benoit Marty
60c8d6e147
Merge pull request #2754 from element-hq/feature/valere/expected_utd_integration
Expected UTDs due to membership support
2024-04-30 11:03:36 +02:00
Benoit Marty
ae8ee8704f
Merge pull request #2759 from element-hq/feature/fga/permalink_timeline
Permalink timeline
2024-04-30 10:58:33 +02:00
Benoit Marty
2c85d86c7a Add missing preview case. 2024-04-30 09:51:29 +02:00
Benoit Marty
80497a8b30 Remove unnecessary parenthesis 2024-04-30 09:47:20 +02:00
Benoit Marty
906650b8d2 Fix tests after change on InReplyTo classes 2024-04-29 23:05:40 +02:00
Jorge Martin Espinosa
eaeebf9e75
User display name overflows in timeline messages (#2767)
* User display name overflows in timeline messages

* Update screenshots

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2024-04-29 17:26:58 +00:00
Benoit Marty
200b43246e Handle click on reply navigation. 2024-04-29 17:55:45 +02:00
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
1be2e183c8 Remove unused newTimelineById 2024-04-29 14:09:06 +02:00
Benoit Marty
4704b1229b Add test on focusRequestState for event TimelineEvents.FocusOnEvent and TimelineEvents.JumpToLive 2024-04-29 12:31:23 +02:00
Benoit Marty
137bfdfda9 focusOnLive() is not suspendable. 2024-04-29 12:15:14 +02:00
Benoit Marty
33f1cb4abf Test TimelineView regarding "Jump to bottom" button. 2024-04-29 10:07:20 +02:00
Benoit Marty
683a593b50 Extract extension setTimelineView 2024-04-29 09:56:19 +02:00
Benoit Marty
f09ae93e3d Remove unused method 2024-04-29 09:48:14 +02:00
bmarty
4f82baa2b0 Sync Strings from Localazy 2024-04-29 00:18:59 +00:00
Benoit Marty
8330fe79c8 Make FocusRequestState immutable. 2024-04-26 18:56:04 +02:00
Benoit Marty
260c7af096 Add unit test on TimelineItemIndexer 2024-04-26 18:50:20 +02:00
Benoit Marty
d6e02ea503 Test TimelineController 2024-04-26 18:27:10 +02:00
Benoit Marty
bd2a11a51c No need to have a MutableStateFlow for the live timeline. 2024-04-26 17:28:54 +02:00
Benoit Marty
f65025f841 Clearer code. 2024-04-26 17:21:11 +02:00
Benoit Marty
8a532769e3 Compact code. 2024-04-26 17:21:11 +02:00
Benoit Marty
7e5f270e2b Create proper PreviewParameterProvider for TimelineItemEncryptedContent
And remove `@Suppress("UNUSED_PARAMETER")`
2024-04-26 17:21:11 +02:00
Valere
971f44c0d3 Expected UTDs due to membership support 2024-04-26 17:21: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
cf06acabe6 Improve preview of TimelineLoadingMoreIndicator 2024-04-26 14:51:33 +02:00
Benoit Marty
f4f5888d5b Move LiveTimelineProvider to the test module. 2024-04-26 14:47:01 +02:00
Benoit Marty
83d9e77c6a Fix issue with Gradient rendering. 2024-04-26 14:40:54 +02:00
Benoit Marty
2dd122e9e9 Improve focusedEvent rendering when sender information are displayed. 2024-04-26 14:29:02 +02:00
Benoit Marty
076d2243a3 Add preview for focusedEvent. 2024-04-26 14:21:12 +02:00
Benoit Marty
300d3e34b1 Format and cleanup files 2024-04-26 13:57:08 +02:00