Commit graph

4490 commits

Author SHA1 Message Date
Benoit Marty
e702dd7995 Replace showConfirmationDialog by disableAction Confirming state, and remove force boolean, we get read the state instead.
Also use AsyncActionView.
2024-01-04 18:07:09 +01:00
Benoit Marty
e42005fc52 Rename AsyncView to AsyncActionView 2024-01-04 17:50:52 +01:00
Benoit Marty
7b2341aec7 Rename Async to AsyncData 2024-01-04 16:30:56 +01:00
Benoit Marty
3b2882ce2f Fix test compilation 2024-01-04 16:23:54 +01:00
Benoit Marty
f5a229dbd4
Merge pull request #2160 from surakin/msc4027
Implement MSC4027 (Custom images in reactions)
2024-01-04 16:23:30 +01:00
Benoit Marty
e752248de1
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
Benoit Marty
d953c979e1 Introduce AsyncAction with a Confirmation state and use it for logout action. 2024-01-04 15:56:16 +01:00
Jorge Martin Espinosa
0ca9780337
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
5d93140043 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
dc8cdb32f0 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
4a6135eed6 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
639c3495aa
Merge branch 'develop' into msc4027 2024-01-04 09:42:23 +01:00
Marco Antonio Alvarez
c914b76994 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
a81fdddab0
[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
6880bf2166 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
50e3605214 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
8cdb9883eb 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
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
Marco Antonio Alvarez
87c8bc133f
[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
bc6d47b288 Add support for sending images from the keyboard #1977 2023-12-29 15:15:22 +01:00
Jorge Martin Espinosa
5a593be997
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
35baaa6209 Add missing test for SecureBackupEnablePresenter 2023-12-28 16:33:53 +01:00
Benoit Marty
4f9fc2cfcf Fix compilation issue with compose compiler 1.5.7 2023-12-28 12:41:02 +01:00
Benoit Marty
dd4aa681c6 Remove now useless ExperimentalLayoutApi opt in 2023-12-28 12:41:02 +01:00
Jorge Martín
d5c8b62178 Add build script for the RTE library 2023-12-28 12:03:23 +01:00
Benoit Marty
b7b1c0d1fc
Merge pull request #2111 from element-hq/feature/bma/directLogout
Direct logout
2023-12-26 17:58:23 +01:00
Benoit Marty
d05cf6d649 Move the logic to the Node, which handles navigation. 2023-12-26 15:47:42 +01:00
Benoit Marty
7db7a32d43 Use a RetryDialog here, it does not change the rendering, but is more appropriate. 2023-12-26 15:42:44 +01:00
Benoit Marty
481d80d1f0 Add comment to clarify the SteadyException case. 2023-12-26 15:39:56 +01:00
Benoit Marty
3dd5bab7b6 Cleanup 2023-12-26 15:37:08 +01:00
Benoit Marty
7414dfaa4d 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
52c2e8ea08 Hide reaction is user do not have permission to send reaction #2093 2023-12-26 14:57:47 +01:00
Benoit Marty
29d23cbeee Refacto: move displayEmojiReactions to ActionListState.Target.Success 2023-12-26 14:45:08 +01:00
Benoit Marty
1f2b2df469 Quality 2023-12-26 13:24:59 +01:00
Benoit Marty
c871dc2492 Add test for DefaultDirectLogoutPresenter 2023-12-26 12:38:03 +01:00
Benoit Marty
25e4e0424d Test more fields 2023-12-26 12:21:32 +01:00
Benoit Marty
2b983e923e Sign out: direct flow if not last session and if not currently backing up keys #2072
Extract some stuff from existing Logout to avoid duplication.
2023-12-26 12:17:09 +01:00
bmarty
e6f4a7364f Sync Strings from Localazy 2023-12-26 09:39:48 +01:00
Benoit Marty
b9b746bea7 Attempt to fix test on CI.
The test is failing on CI with this error:
expected instance of: io.element.android.libraries.architecture.Async$Success
but was instance of : io.element.android.libraries.architecture.Async$Loading
with value          : Loading(prevData=null)
2023-12-26 08:32:18 +01:00
Jorge Martín
c5c920cfa6 Revert "Merge pull request #2071 from element-hq/feature/bma/fixTests"
This reverts commit 19edf067fa, reversing
changes made to fb766f5176.
2023-12-22 12:01:42 +01:00
Jorge Martin Espinosa
cbf34929af
Revert "Room list badges" 2023-12-22 11:02:07 +01:00
Benoit Marty
6ff48c2ee4 Fix tests now that Mentions feature is enabled. 2023-12-21 17:43:08 +01:00
Benoit Marty
3bb27a662a
Merge pull request #2080 from element-hq/feature/bma/roomListBadges
Room list badges
2023-12-21 16:44:10 +01:00
Benoit Marty
91027f82e9 Fix test. 2023-12-21 16:11:03 +01:00
Benoit Marty
02fe9c4580 Handle PR review. 2023-12-21 16:05:51 +01:00
Benoit Marty
7273abd42b
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
3a7804b3b0 We can have numUnreadMentions > 0 and numUnreadMessages == 0, in this case, display both icons. 2023-12-21 15:39:52 +01:00
Benoit Marty
f2c989cbd6 Iterate on indicators on room list #2079 2023-12-21 14:51:31 +01:00
Benoit Marty
98d9a65a1f Remove dead code (has been moved to selectroom module) 2023-12-21 14:09:59 +01:00
Jorge Martin Espinosa
a56151bc62
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