Commit Graph

893 Commits

Author SHA1 Message Date
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
e762584a37 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
ae424ffe6a Merge pull request #1782 from element-hq/feature/bma/upgradeKover
Upgrade kover
2024-01-09 17:52:14 +01:00
Jorge Martin Espinosa
7008b403c0 Fix mention selector getting stuck when quickly deleting the prompt (#2195)
* Fix mention selector getting stuck when quickly deleting the prompt
2024-01-09 11:07:10 +00:00
Benoit Marty
b377da22ad Remove empty test module 2024-01-09 10:45:36 +01:00
Jorge Martin Espinosa
3954612a72 Hide keyboard when tapping on a message in the timeline (#2187)
* Hide keyboard when tapping on a message in the timeline if it would result in navigating to another screen
2024-01-08 14:02:57 +01:00
Benoit Marty
a424cb0a6a exclude items.count(), which is not a valid index for the list. 2024-01-08 11:41:29 +01:00
Benoit Marty
66201c6e58 Do not use sublist as it crashes if index > items.count(). Using range is safer.
Fix https://github.com/element-hq/element-x-android-rageshakes/issues/1301
2024-01-08 11:26:50 +01:00
Benoit Marty
cbc86ea1e4 Merge branch 'develop' into feature/bma/sendImageFromKeyboard 2024-01-08 08:59:00 +01:00
bmarty
06db67abe8 Sync Strings from Localazy 2024-01-08 00:10:36 +00:00
Jorge Martin Espinosa
00c27ffafc Use SubcomposeLayout for ContentAvoidingLayout (#2171)
Use `SubcomposeLayout` for `ContentAvoidingLayout`
2024-01-05 12:40:25 +00:00
Jorge Martin Espinosa
0e3f0ac6b5 Trim whitespace at the end of messages (#2169)
Trim whitespace at the end of messages
2024-01-05 12:40:10 +01:00
Jorge Martin Espinosa
936127c682 Fix crashes for extremely long messages with no line breaks (#2163) 2024-01-05 11:11:49 +00:00
Benoit Marty
24a3c2baf7 Merge pull request #2166 from element-hq/feature/bma/fixFlakyTest
Introduce AsyncAction with a Confirmation state and use it for logout action
2024-01-05 10:30:43 +01:00
Benoit Marty
1dc6e5edb3 Clean up 2024-01-04 18:45:34 +01:00
Benoit Marty
d78ce21939 Rename AsyncView to AsyncActionView 2024-01-04 17:50:52 +01:00
Benoit Marty
bd91dd64e2 Rename Async to AsyncData 2024-01-04 16:30:56 +01:00
Benoit Marty
676ec90c22 Merge pull request #2160 from surakin/msc4027
Implement MSC4027 (Custom images in reactions)
2024-01-04 16:23:30 +01:00
Benoit Marty
9838092ca2 Merge pull request #2162 from surakin/do-not-forward-stickers
Disable forwarding for stickers (until it can be properly fixed)
2024-01-04 16:17:20 +01:00
Jorge Martin Espinosa
1e2fc6ad27 Remove 'document' case for message with timestamp preview (#2164)
* Remove 'document' case for message with timestamp preview

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2024-01-04 15:22:09 +01:00
Marco Antonio Alvarez
fb743a98a3 add comment about sticker forwarding being disabled
Signed-off-by: Marco Antonio Alvarez <surakin@gmail.com>
2024-01-04 13:57:16 +01:00
Marco Antonio Alvarez
42d0bf0339 Disable forwarding for stickers (until it can be properly fixed)
Signed-off-by: Marco Antonio Alvarez <surakin@gmail.com>
2024-01-04 13:04:56 +01:00
Marco Antonio Alvarez
5eceab15b6 use different heights for reaction summary view and reaction buttons
Signed-off-by: Marco Antonio Alvarez <surakin@gmail.com>
2024-01-04 10:53:53 +01:00
Marco Antonio Alvarez
8f48e11201 Merge branch 'develop' into msc4027 2024-01-04 09:42:23 +01:00
Marco Antonio Alvarez
4dcc08116a use AsyncImage instead of BlurHashAsyncImage
move emoji line height to a private value

Signed-off-by: Marco Antonio Alvarez <surakin@gmail.com>
2024-01-04 09:20:21 +01:00
Marco Antonio Alvarez
83e4af52b9 [Technical] Open stickers using the thumbnail url if the main url is empty (#2157)
* Explicitely use the thumbnail url to show stickers if the content's url is an empty string

---------

Signed-off-by: Marco Antonio Alvarez <surakin@gmail.com>
2024-01-04 09:06:30 +01:00
Marco Antonio Alvarez
e62cfa8fef fix top level property naming
Signed-off-by: Marco Antonio Alvarez <surakin@gmail.com>
2024-01-04 09:01:29 +01:00
Marco Antonio Alvarez
6c06ec4235 fix Modifier forbidden pattern and missing const
Signed-off-by: Marco Antonio Alvarez <surakin@gmail.com>
2024-01-04 08:50:58 +01:00
Marco Antonio Alvarez
467ccf65a2 Implement MSC4027 (Custom Images in Reactions)
Signed-off-by: Marco Antonio Alvarez <surakin@gmail.com>
2024-01-03 23:30:14 +01:00
Jorge Martin Espinosa
c6d109c424 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
Marco Antonio Alvarez
378da8ce21 [Feature] Render m.sticker events (#2122)
* Render m.sticker events
---------

Signed-off-by: Marco Antonio Alvarez <surakin@gmail.com>
Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2024-01-02 16:03:19 +01:00
Benoit Marty
47f0a2e73c Add support for sending images from the keyboard #1977 2023-12-29 15:15:22 +01:00
Jorge Martin Espinosa
5593430d5b Merge pull request #2119 from element-hq/misc/jme/add-rte-build-script
Add build script for the RTE library
2023-12-28 18:18:19 +01:00
Benoit Marty
d9fb5ce007 Remove now useless ExperimentalLayoutApi opt in 2023-12-28 12:41:02 +01:00
Jorge Martín
770668589b Add build script for the RTE library 2023-12-28 12:03:23 +01:00
Benoit Marty
cc19bd9d0b Cleanup 2023-12-26 15:37:08 +01:00
Benoit Marty
b46f84ee5b Hide add more reaction button if user do not have permission to send reaction #2093
Also:
 - move `userHasPermissionToSendMessage` to `TimelineRoomInfo`
 - remove `canReply` parameter which can be computed from other params.
2023-12-26 15:27:08 +01:00
Benoit Marty
f0fc1507ec Hide reaction is user do not have permission to send reaction #2093 2023-12-26 14:57:47 +01:00
Benoit Marty
78f0ce0d27 Refacto: move displayEmojiReactions to ActionListState.Target.Success 2023-12-26 14:45:08 +01:00
bmarty
ada357b344 Sync Strings from Localazy 2023-12-26 09:39:48 +01:00
Jorge Martin Espinosa
ada16a8563 Revert "Room list badges" 2023-12-22 11:02:07 +01:00
Benoit Marty
5d1b7c6446 Fix tests now that Mentions feature is enabled. 2023-12-21 17:43:08 +01:00
Benoit Marty
93fabfdc56 Merge pull request #2080 from element-hq/feature/bma/roomListBadges
Room list badges
2023-12-21 16:44:10 +01:00
Benoit Marty
6b16995812 Merge pull request #2041 from element-hq/feature/fga/fix_timeline_back_pagination_loop
Fix timeline back pagination loop in encrypted room.
2023-12-21 15:42:23 +01:00
Benoit Marty
e6ad262329 Iterate on indicators on room list #2079 2023-12-21 14:51:31 +01:00
Benoit Marty
799f351536 Remove dead code (has been moved to selectroom module) 2023-12-21 14:09:59 +01:00
Jorge Martin Espinosa
80c139974b Emojis in custom reaction bottomsheet are too tiny (#2074)
* Emojis in custom reaction bottomsheet are too tiny

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-12-21 10:39:11 +01:00
Benoit Marty
cc50d45141 Use icon from library and move and rename retry.xml to the library.
Also fix contentDescription for pause button.
2023-12-20 17:33:49 +01:00
Benoit Marty
f7f71ddf4a Use Thread icon from Compound and delete ic_thread_decoration 2023-12-20 17:33:49 +01:00
Benoit Marty
39298a22f3 Use VideoCallSolid and also delete local ic_video_call.xml icon. 2023-12-20 17:33:49 +01:00