ganfra
042c0c5a6b
Change (mention span) : rework and add more cases ( #4476 )
...
* change(mention span) : improve truncation logic
* change(mention span) : fix theme switching
* change(mention span) : start to pillify permalinks
* change(mention span) : use permalink directly
* change(mention span) : start improving mention type
* change(mention span) : use the appropriate MentionSpanProvider methods
* change(mention span) : introduce MentionSpanFormatter
* change(mention span) : introduce MentionSpanUpdater
* change(mention span) : Improve RoomNameCaches
* change(mention span) : remove useless param on HtmlConverterProvider
* change(mention span) : fix some remaining issues on the composer
* change(mention span) : remove pillifiedBody
* change(mention span) : fix some issues with pillification
* change(mention span) : fix getMentionsSpans
* change(mention span) : make sure all tests passes
* change(mention span) : remove the coroutine from the caches and a MentionSpanFormatterTest
* change(mention span) : add more tests on pillification
* change(mention span) : clean up
* Update screenshots
* change(mention span) : remove unexpected print
* change(mention span) : remove default values in constructor of TimelineTextBasedContent classes
* Update screenshots
---------
Co-authored-by: ElementBot <android@element.io >
2025-03-28 11:20:32 +01:00
Benoit Marty
05fc76822a
Apply dual licenses: AGPL + Element Commercial to file headers.
...
2 replace all actions have been performed:
- "SPDX-License-Identifier: AGPL-3.0-only" to "SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial"
- "Please see LICENSE in the repository root for full details." to "Please see LICENSE files in the repository root for full details."
2025-01-07 10:05:04 +01:00
Benoit Marty
2b016227e9
Migrate license to AGPL.
...
Run script `uv run license-editor --repository ../element-x-android`
2024-09-06 17:19:19 +02:00
Benoit Marty
378692f743
Fix moar ktlint issues
2024-01-11 10:02:10 +01:00
renovate[bot]
7e9cda3aa9
Update plugin ktlint to v12.1.0 ( #2200 )
...
* Update plugin ktlint to v12.1.0
* Run `./gradlew ktlintFormat` and fix some issues manually.
* Fix other issues reproted by Ktlint
* Limit false positives, KtLint removes unnecessary curly brace in String templates.
* Remove useless Unit
* Minor improvements over ktlint changes
* Restore `AlertDialogContent` behaviour
* Update screenshots
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Benoit Marty <benoit@matrix.org >
Co-authored-by: Jorge Martín <jorgem@element.io >
Co-authored-by: ElementBot <benoitm+elementbot@element.io >
2024-01-10 16:22:24 +01:00
Jorge Martin Espinosa
ab58cc2ed5
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
jonnyandrew
e376feba22
Add analytics for voice messages ( #1706 )
2023-11-02 09:32:22 +00:00
jonnyandrew
3a39e747fd
Fix issue where text is cleared when cancelling a reply ( #1617 )
2023-10-23 08:31:32 +00:00
jonnyandrew
ffa6c43503
[Voice messages] Add voice recording UI ( #1546 )
...
---------
Co-authored-by: ElementBot <benoitm+elementbot@element.io >
2023-10-12 15:17:18 +00:00
Marco Romano
a1ca7cf2ca
Extract MessageComposerContext class from MessageComposerPresenter ( #876 )
...
When sending "Composer" analytics from screens other than the composer's (e.g. send location from map) we need to know the composer's mode in order to properly fill the analytics event. `MessageComposerContext` hoists this state so that other presenters can also read it.
Related to:
https://github.com/vector-im/element-meta/issues/1674
https://github.com/vector-im/element-meta/issues/1682
2023-07-14 11:32:09 +00:00