Commit graph

657 commits

Author SHA1 Message Date
Benoit Marty
ff1147e611 Sync localazy to fix lint error. 2023-05-30 13:55:23 +02:00
Benoit Marty
7f2b23507c Merge pull request #471 from vector-im/sync-localazy
Sync Strings
2023-05-30 13:06:51 +02:00
Benoit Marty
6621163d27 Document [TimelineItemGroupPosition] and improve preview of [MessageEventBubble]. 2023-05-30 10:17:25 +02:00
Jorge Martín
668b0e7273 Merge remote-tracking branch 'origin/develop' into feature/fga/image_loading 2023-05-29 18:11:53 +02:00
Jorge Martín
87990c425c Fix small issues, improve Result.flatMap 2023-05-29 13:58:29 +02:00
bmarty
175b7deccb Sync Strings from Localazy 2023-05-29 00:09:47 +00:00
ganfra
b2a66ddafe Media: handle PR review remarks 2023-05-26 19:09:51 +02:00
Jorge Martín
15ff1a4d30 Timestamp improvements 2023-05-26 14:37:39 +02:00
ganfra
462f8c138a Merge branch 'develop' into feature/fga/image_loading 2023-05-26 13:43:51 +02:00
ganfra
405a6073c6 Fix lint issue 2023-05-26 13:07:27 +02:00
Jorge Martin Espinosa
7aae71c2d4 Display timestamps for text messages (#465) 2023-05-26 10:51:15 +00:00
ganfra
2c0771ecc0 Merge branch 'develop' into feature/fga/image_loading 2023-05-26 11:39:34 +02:00
ganfra
e0106fe907 Media: some more improvements over MediaViewer 2023-05-25 23:02:19 +02:00
Benoit Marty
9efb703854 Fix test compilation 2023-05-25 14:17:09 +02:00
Benoit Marty
0c95912c9c Group some state events in the timeline 2023-05-25 14:17:09 +02:00
Benoit Marty
66baf1632e Extract to sub classes 2023-05-25 14:16:23 +02:00
Benoit Marty
b7278f3e3e Process state event in timeline - WIP 2023-05-25 14:16:23 +02:00
Benoit Marty
a5fc4ffe84 Rename processMessageItem to simple format 2023-05-25 14:16:23 +02:00
Benoit Marty
abf7089cea Inject StringProvider instead of context. 2023-05-25 14:16:23 +02:00
Benoit Marty
9d66af834d Move RoomLastMessageFormatter and related class and resource to the new module eventformatter, in order to prepare rendering of state event in the timeline. 2023-05-25 14:15:35 +02:00
Marco Romano
0dee0784ba Room list contextual menu (#427)
- Adds `ModalBottomSheet` to our design components (it wraps the homonimous Material3 one).
- Adds  a bottom sheet to the Room list using the aforementioned design component.
- Adds navigation from the room list to a room detail (context menu "Settings" action).
- Consolidates the "leave room flow" into a new `leaveroom` module used by both the room list and the room details.
  - Adds progress indicator to the leave room flow
- Uses new `leaveroom` module in `roomdetails` module too. 

Parent issue:
- https://github.com/vector-im/element-x-android/issues/261
2023-05-25 06:42:44 +00:00
ganfra
3e01a2f317 Media: some code clean-up 2023-05-24 22:23:38 +02:00
ganfra
92e19c3dd9 Media: improve a bit the viewers 2023-05-24 22:19:18 +02:00
Benoit Marty
897540ed04 Merge pull request #447 from vector-im/feature/bma/wysiwyg2.2.0
Wysiwyg 2.2.0
2023-05-24 19:07:35 +02:00
ganfra
fc601acd28 Merge branch 'develop' into feature/fga/image_loading 2023-05-24 17:39:27 +02:00
ganfra
75f85a97b7 Media: makes sure system ui get back to normal when leaving preview/viewer 2023-05-24 17:30:09 +02:00
ganfra
ced60c672e Media: add more tests 2023-05-24 17:06:27 +02:00
Benoit Marty
e486677cf8 Merge pull request #438 from vector-im/feature/fre/invite_people_action
Handle "Invite people" action in the start a chat flow
2023-05-23 17:03:39 +02:00
ganfra
5c198bc279 Media: fix zoomable image with non content uri 2023-05-23 16:58:22 +02:00
Benoit Marty
f1bd767112 Fix compilation warnings. 2023-05-23 12:00:36 +02:00
Benoit Marty
8beb7310ef Fix compilation issue with Wysiwyg 2.2.0 2023-05-23 11:55:23 +02:00
renovate[bot]
91f77772bc Update dependency org.matrix.rustcomponents:sdk-android to v0.1.15 (#444)
Co-authored-by: Chris Smith <csmith@lunarian.uk>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-05-23 09:51:02 +00:00
Chris Smith
198d6d4c56 Invite users to existing rooms (#441)
Invite users to existing rooms

Scope:

- Allow inviting from the room detail screen and the member list
- Invite option is only shown if the user has the correct power level
- Search flow the same as creating a new room, allowing multi-select
- Existing room members/invitees are disabled with a custom caption
- Sending is asynchronous, an error dialog will appear wherever the
  user is if necessary

Closes #245
2023-05-23 09:23:24 +00:00
ganfra
63513ae2da Merge branch 'develop' into feature/fga/image_loading 2023-05-22 20:59:37 +02:00
ganfra
458cd2d4f3 Media: keep the name of the file when possible 2023-05-22 20:24:42 +02:00
Chris Smith
44a3f48306 Merge remote-tracking branch 'origin/develop' into feature/fre/invite_people_action 2023-05-22 15:35:25 +01:00
Chris Smith
848f1cb988 Refactor search related functionality (#436)
Refactor search related functionality

This is a prelude to adding the feature of inviting users to
a room, getting everything in the right place and reusable.

What this does:

## User search refactor

Moves the (global) user search logic (dealing with MXIDs,
minimum lengths, debounces) into a `UserRepository`.

This now sits in a `usersearch` library, which will be
used by the create room flow and the new invite flow.

## SearchBar logic pull-up

Every place we use SearchBar, we're doing the same things
to style placeholders, show back/cancel buttons, etc.

We also have a results type that is duplicated for
basically every feature that uses the search bar.

I've pushed all this common functionality into the
SearchBar itself. This makes the component a bit less
general purpose, but saves a lot of repetition.

## Remove the userlist feature

Almost all the functionality of the userlist feature
is now exclusively used by the create room feature.
Room details uses its own version because the
requirements are different.

Components useful elsewhere (SelectedUsers and
SelectedUser) have gone to matrixui, everything else
has gone to createroom.

## Other bits and pieces

I've fixed everywhere that uses Scaffold to correctly
consume the WindowInsets if the contentPadding is
applied to the contents (which it universally is).
This was a change in the last version of Material3
(I guess previously Scaffold handled the consumption
for us). This fixes weird gaps above search bars.

Added overloads for the MatrixUserRow and
CheckedMatrixUserRow that take the name/subtitle/avatar
separately, so the invites list can pass arbitrary
text like "User has already been invited".

The `blockuser` package was for some reason not
under `impl` but alongside it, I've bumped it into
the right place.
2023-05-22 09:06:54 +00:00
Florian Renaud
9f7c48c3dd Handle "Invite people" action in the start a chat flow 2023-05-20 00:56:23 +02:00
ganfra
62b66b2111 Media : some improvements and cleaning 2023-05-17 17:48:57 +02:00
ganfra
6dedb43213 Media: use telephoto library 2023-05-17 16:20:12 +02:00
ganfra
ad697bbe7b Media: use blurhash library 2023-05-17 16:19:18 +02:00
ganfra
f51d6a3cfd Media : branch upload to preview screen (need improvement) 2023-05-17 08:44:35 +02:00
Florian Renaud
c54e4acd57 Restore missing OptIn annotation 2023-05-16 16:41:43 +02:00
Florian Renaud
e407b51f6b Sync strings 2023-05-16 16:36:47 +02:00
Florian Renaud
7a36d084e6 change wording for DM creation dialog 2023-05-16 16:36:47 +02:00
Florian Renaud
7ffe463e23 Rename preview 2023-05-16 16:36:47 +02:00
ganfra
8c5e1c88ce Media: update doc on MediaLoader 2023-05-16 14:50:54 +02:00
Florian Renaud
afc32f4810 Merge remote-tracking branch 'origin/develop' into
feature/fre/create_room_select_avatar
2023-05-16 14:18:29 +02:00
ganfra
5176499195 Media: fix encrypted media 2023-05-16 11:51:11 +02:00
ganfra
e3ad4ee06f Media : extract an extension method to mediaupload 2023-05-16 11:24:14 +02:00