Commit Graph

6106 Commits

Author SHA1 Message Date
Florian Renaud e407b51f6b Sync strings 2023-05-16 16:36:47 +02:00
Florian Renaud 56251fedd9 Remove useless composed call 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 2ed8515231 restrict room name to single line 2023-05-16 16:36:47 +02:00
Florian Renaud a3f0281525 Close keyboard when textfields lose focus 2023-05-16 16:36:47 +02:00
Florian Renaud d903901457 Select private privacy by default 2023-05-16 16:36:47 +02:00
Florian Renaud 6d9f6664d8 Make the configure room screen scrollable 2023-05-16 16:36:46 +02:00
Florian Renaud 2c39e8f9fc Fix test compilation 2023-05-16 15:37:22 +02:00
ganfra c8ead4ab9f Media: update ui on media viewers 2023-05-16 14:51:18 +02:00
Florian Renaud f6ec8357f2 Use material3 ListItem 2023-05-16 14:29:18 +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
Benoit Marty a0206b2b2f Merge pull request #425 from vector-im/feature/bma/material3_update
Use default material3 version again and cleanup `@OptIn` annotations.
2023-05-16 09:51:17 +02:00
ganfra 4b49d40801 Merge branch 'develop' into feature/fga/image_loading 2023-05-15 20:07:00 +02:00
Marco Romano b51c19af19 Show pending invitations in room members list (#385)
Splits a Room's member list in 2 showing pending invitees first and then the actual room member.

This simple user facing change entails a host of under the hood changes:
- It copies the logic from the `userlist` module and merges it into the `roomdetails` module removing all details not related to the member list (e.g. gets rid of multiple selection, debouncing etc.).
- Uncouples the `roomdetails` module from the `userlist` one. Now leaving only the `createroom` module to depend on the `userlist` module. Therefore the `userlist` module could be in the future completely removed and merged into the `createroom` module.
 - Changes the room members count in the room details screen to only show the members who have joined (i.e. don't count those still in the invited state).

Missed ACs:
- This change does not make the member list live update. Discussion is ongoing on how to make this technically feasible.

Parent issue:
- https://github.com/vector-im/element-x-android/issues/246
2023-05-15 14:39:27 +02:00
Benoit Marty e2f4ec3cf0 Fix more warning and replace deprecated code. Also use TextField from our components. 2023-05-15 13:43:27 +02:00
Benoit Marty 457b83184a Use default material3 version again and cleanup @OptIn annotations.
Material3 is now 1.1.0
2023-05-15 12:28:31 +02:00
ganfra 80adbd4bd1 Media: improve media viewer 2023-05-12 18:48:24 +02:00
Florian Renaud 454fbe7f73 Merge pull request #400 from vector-im/renovate/kotlin
Update kotlin to v1.7.0
2023-05-12 17:03:41 +02:00
Florian Renaud 394ef825ef increase test timeout 2023-05-12 15:34:35 +02:00
Florian Renaud 53adb456ba Test cleanup 2023-05-12 13:30:06 +02:00
Florian Renaud d7d1d01543 Add missing OptIn 2023-05-12 13:28:22 +02:00
Chris Smith 92e9d3a127 Fix a few FFI leaks (#405)
Fix a few FFI leaks

These are instances where we obtain an FFIObject and don't call
Close on it to release the underlying reference on the Rust side.

The worst instance here was leaking an object per room member
every time we refreshed the member list
2023-05-12 10:50:39 +00:00
Florian Renaud 719dd20555 Remove useless OptIn in tests 2023-05-12 10:05:39 +02:00
Florian Renaud 38967a2f4d Add more tests 2023-05-11 23:03:47 +02:00
Jorge Martin Espinosa 89b9db3be6 [Media upload] Upload image, video and files (#411)
* Add media upload

* Display media upload error messages using a Snackbar.
2023-05-11 15:56:13 +00:00
Florian Renaud 42e5a86c54 Fix test build 2023-05-11 17:34:40 +02:00
Florian Renaud 610faf942d Reformat some code 2023-05-11 17:31:56 +02:00
Florian Renaud edb2cee361 Clear cached image after room creation 2023-05-11 16:30:38 +02:00
Florian Renaud 27f6f5cd3b upload avatar within the room creation 2023-05-11 16:30:38 +02:00
Florian Renaud 17dd489e6a Add missing tests 2023-05-11 16:30:38 +02:00
Florian Renaud 750b427bc4 Add todo and screenshot tests 2023-05-11 16:30:37 +02:00
Florian Renaud 33ee366c8d Fix tests after rebase 2023-05-11 16:30:37 +02:00
Florian Renaud 929ebc79c5 Delete cached avatar URI 2023-05-11 16:30:37 +02:00
Florian Renaud a28c0170f6 Rework and add remove button 2023-05-11 16:30:37 +02:00
Florian Renaud fcdc737a81 WIP pick avatar image 2023-05-11 16:30:37 +02:00
Jorge Martin Espinosa 5eaa40a14b [Media upload] Media pre-processing (#403)
* Create `mediaupload` module for media pre-processing.

* Split `mediapicker` and `mediaupload` modules.
2023-05-10 10:06:56 +02:00
bmarty f54b4e9f7e Sync Strings from Localazy 2023-05-08 00:08:48 +00:00
ganfra 2386ce733a Introduce Attachments and LocalMedia (WIP) 2023-05-05 19:48:50 +02:00
ganfra 4236b69705 Introduce MatrixMediaSource 2023-05-05 19:47:10 +02:00
Florian Renaud 403014b1dd Fix navigation broken 2023-05-05 17:11:45 +02:00
Benoit Marty c27487839c Merge pull request #394 from vector-im/feature/bma/moveShowkaseButton
Move showkase button
2023-05-05 16:40:01 +02:00
ganfra c3a1297c18 Merge develop into feature/fga/image_loading 2023-05-05 12:51:00 +02:00
Benoit Marty 4d7ec3916b Re-order parameters. 2023-05-05 11:49:27 +02:00
Chris Smith 6165e60e53 Make danger check view changes (#391)
Make danger check view changes

Add a check that if a file with @Preview or @LargeHeightPreview
in it is changed, then the corresponding build file includes
the showkase processor.

Also change the check that prompts about screenshots to use
the same @Preview logic instead of checking for "/layout" in
the path which doesn't work with compose.

Also add missing showkase processors
2023-05-05 08:24:12 +00:00
Benoit Marty e89fcdcc94 Avoid using hard-coded key, use ShowkaseBrowserActivity.getIntent() instead. 2023-05-04 17:31:08 +02:00
Chris Smith ee909fcbd8 Show badges for new invites (#355)
Show badges for new invites

Closes #238
2023-05-04 15:30:55 +00:00
Benoit Marty 6b77313fd6 Move the button to open the Showkase browser to the developer settings screen. (#389) 2023-05-04 17:29:03 +02:00
Florian Renaud 73473bc2d2 Add tests 2023-05-04 16:34:38 +02:00