element-x-ada/features/messages/api
Jorge Martin Espinosa 1e86d8279b
Use RTE TextView for timeline text messages, add mention pills to messages (#1990)
* Add `formattedBody` to `TimelineItemTextBasedContent`.

This is pre-computed when timeline events are being mapped from the Rust SDK.

* Update `HtmlConverterProvider` styles.

* Improve `MentionSpan` to add missing `@` or `#` if needed

* Replace `HtmlDocument` with the `TextView` based component

* Improve extra padding calculation for timestamp by rounding the float offset result instead of truncating it.

* Remove composer line height workaround

* Use `ElementRichTextEditorStyle` instead of `RichTextEditorDefaults` for the theming

* Use slightly different styles for composer and messages (top/bottom line height discrepancies, mostly).

* Add `formattedBody` to notice and emote events.

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-12-13 18:09:53 +01:00
..
src/main/kotlin/io/element/android/features/messages/api Use RTE TextView for timeline text messages, add mention pills to messages (#1990) 2023-12-13 18:09:53 +01:00
.gitignore Try splitting messages into api and impl modules 2023-03-03 14:38:05 +01:00
build.gradle.kts Use RTE TextView for timeline text messages, add mention pills to messages (#1990) 2023-12-13 18:09:53 +01:00