Jorge Martin Espinosa
19b6b924d9
Make sure the selection in the plain text editor is inside the text bounds ( #2959 )
...
* Make sure the selection in the plain text editor is inside the text bounds
* Add changelog
2024-05-31 12:49:26 +02:00
Benoit Marty
f5a0e83cb2
Merge pull request #2941 from element-hq/sync-localazy
...
Sync Strings
2024-05-29 16:27:17 +02:00
bmarty
ca5bc71057
Sync Strings from Localazy
2024-05-29 12:44:57 +00:00
Benoit Marty
37d9a9f5a9
Lambda parameters in a composable function should be in present tense, not past tense.
...
https://mrmans0n.github.io/compose-rules/rules/#naming-parameters-properly
2024-05-29 12:18:23 +02:00
Marco Antonio Alvarez
a9835e0dd1
Add rich content listener to markdown text input ( #2918 )
...
* add rich content listener to markdown text input
Signed-off-by: Marco Antonio Alvarez <surakin@gmail.com>
2024-05-27 16:36:32 +02:00
Benoit Marty
b3e0f6e843
Translations: pt -> pt-rBR
2024-05-27 14:51:32 +02:00
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
f04253287f
Introduce lambdaError instead of using TODO, to handle error when a lambda is invoked and it should not.
2024-05-23 09:12:40 +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
bmarty
83a8a631f2
Sync Strings from Localazy
2024-05-20 00:23:05 +00:00
bmarty
0910da0a14
Sync Strings from Localazy
2024-05-13 12:47:48 +00: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
74a9a54719
Rename Preview to follow code convention
2024-04-19 14:30:45 +02:00
Benoit Marty
35de787326
Fix test.
2024-04-18 00:56:46 +02:00
Benoit Marty
09faa6d1c9
Simplify PermalinkData, now that we have RoomIdOrAlias interface.
2024-04-18 00:03:15 +02:00
Benoit Marty
bd12ff737b
Introduce value class RoomAlias
2024-04-18 00:02:09 +02:00
Benoit Marty
3df328b1ab
Parse permalink using parseMatrixEntityFrom.
...
Create new PermalinkData type for link to Events.
Keep matrixToConverter for now to first convert to matrix.to link. At some point it may be done by the SDK.
Remove parse(Uri)
2024-04-15 17:47:40 +02:00
Benoit Marty
131edd0ba4
Always use method aRichTextEditorState instead of invoking the constructor directly, and remove parameter when it's the default value.
2024-04-11 11:17:56 +02:00
Benoit Marty
609f636d1c
Merge pull request #2639 from element-hq/feature/bma/hideCallMemberEvents
...
Hide call member events
2024-04-02 16:14:11 +02:00
Benoit Marty
1e5a61a49c
Move PermalinkBuilder, MatrixToConverter and PermalinkParser content to the impl project in order to remove projects.appconfig dependency from matrix.api module.
2024-04-02 14:15:54 +02:00
bmarty
5809864182
Sync Strings from Localazy
2024-04-01 00:17:18 +00:00
bmarty
c021809479
Sync Strings from Localazy
2024-03-12 13:54:03 +00:00
Jorge Martin Espinosa
3453738344
Prevent sending empty messages ( #2527 )
...
* Prevent sending empty messages
* Fix screenshot issue
* Use `aRichTextEditorState` helper function
2024-03-12 12:25:23 +01:00
ElementBot
dac54e7154
Sync Strings ( #2523 )
...
Co-authored-by: bmarty <3940906+bmarty@users.noreply.github.com>
2024-03-11 08:46:07 +00:00
Benoit Marty
6d31c7d1d3
Import string again with new post processing.
2024-02-26 21:36:28 +01:00
bmarty
5c8be8f61f
Sync Strings from Localazy
2024-02-26 18:17:16 +00:00
Benoit Marty
b9933acf98
Sync Localazy strings - including post treatment.
...
./tools/localazy/downloadStrings.sh --all
2024-02-23 17:45:22 +01:00
Benoit Marty
a7e38f0925
Sync Localazy strings.
...
./tools/localazy/downloadStrings.sh --all
2024-02-23 12:23:11 +01:00
Jorge Martin Espinosa
b69cb8175a
Update Compound to v0.0.5 and update icons ( #2380 )
...
Update Compound to `v0.0.5`:
- Make sure we fix all the breaking changes.
- Update some icons to use the compound version instead.
-Replace icons with their Compound counterparts when possible.
- Clean up unused icons.
- Fix issues with incorrect icons or sizes being used after replacing the temporary icons with the Compound ones.
---------
Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2024-02-12 16:41:58 +00:00
Benoit Marty
b104dba845
Remove Modifier parameter in private function when only default value is used.
...
This will improve the code coverage metrics, and this also fixes a few potential bug, where the Modifier was used several times.
2024-02-08 11:06:06 +01:00
bmarty
03c95555e3
Sync Strings from Localazy
2024-02-05 00:09:59 +00:00
Benoit Marty
bfb6b32740
Send typing notification #2240
2024-01-26 16:30:43 +01:00
Benoit Marty
eb51b49aef
Always use the latest... fix.
2024-01-23 18:13:33 +01:00
Benoit Marty
3ced570b3c
Fix detekt issue:
...
Lambda parameters in a @Composable that are referenced directly inside of restarting effects can cause issues or unpredictable behavior.
If restarting the effect is ok, you can add the reference to this parameter as a key in that effect, so when the parameter changes, a new effect is created.
However, if the effect is not to be restarted, you will need to use `rememberUpdatedState` on the parameter and use its result in the effect.
See https://mrmans0n.github.io/compose-rules/rules/#be-mindful-of-the-arguments-you-use-inside-of-a-restarting-effect for more information. [LambdaParameterInRestartableEffect]
2024-01-23 18:13:33 +01:00
ElementBot
6bc080c279
Sync Strings ( #2230 )
...
Co-authored-by: bmarty <bmarty@users.noreply.github.com>
2024-01-15 09:21:04 +01:00
Benoit Marty
5d086ad82d
Fix moar ktlint issues
2024-01-11 10:02:10 +01:00
renovate[bot]
c8bd362397
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
13e8e954d3
Improve rendering of voice messages in the timeline in large displays ( #2199 )
...
* Improve rendering of voice messages in the timeline in large displays
---------
Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2024-01-09 18:07:23 +01:00
Benoit Marty
b6f88f9792
Merge branch 'develop' into feature/bma/sendImageFromKeyboard
2024-01-08 08:59:00 +01:00
Jorge Martin Espinosa
4f6c7421bd
Implement ContentAvoidingLayout for timeline items ( #2113 )
...
* Implement `ContentAvoidingLayout` for timeline items
* Truncate long mention pills
---------
Co-authored-by: Benoit Marty <benoit@matrix.org>
Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2024-01-03 12:32:02 +01:00
Benoit Marty
bc6d47b288
Add support for sending images from the keyboard #1977
2023-12-29 15:15:22 +01:00
Jorge Martin Espinosa
7fdba39d6d
Disable vector XML rasterisation on API 23 ( #2128 )
...
* Disable vector XML rasterisation on API 23
---------
Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-12-29 11:41:08 +00:00
Jorge Martín
bbc36adb39
Fix release build
2023-12-28 15:20:28 +01:00
Jorge Martín
d5c8b62178
Add build script for the RTE library
2023-12-28 12:03:23 +01:00
bmarty
e6f4a7364f
Sync Strings from Localazy
2023-12-26 09:39:48 +01:00
Benoit Marty
6316dd2c15
Remove unused import and format.
2023-12-20 17:33:49 +01:00
Benoit Marty
9ae521dd0b
Use Edit icon from Compound and delete ic_edit_solid
2023-12-20 17:33:49 +01:00
Benoit Marty
c0fa56fff4
Fix size trick, the icon has changed.
2023-12-20 17:33:49 +01:00
Benoit Marty
79f52990ff
Use CompoundIcon and remove ic_send.xml
2023-12-20 17:33:49 +01:00
Jorge Martin Espinosa
80408a807c
Fix mentions font weight and horizontal padding ( #2025 )
...
* Fix mentions font weight and horizontal padding
---------
Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-12-14 14:15:25 +01:00