Commit Graph

251 Commits

Author SHA1 Message Date
Florian Renaud
04d4b6369a Update room properties from room details (#439)
-  Add the edit action in the room details
-  Add "Add topic" button in room details
-  Add the screen behind that action to edit some room properties: avatar, name, topic
   -  Handle the save button action
      - enable the button only if changes are detected
      - display a loader "updating room"
      - display an error dialog if any request has failed
- Check user has the right power level to change various attributes
   - "Add topic" is only shown if there's no topic and they are able to set on
   - Edit menu is only shown if they can change topic, name or avatar
   - On the edit page, any fields they can't change are uneditable

Co-authored-by: Chris Smith <csmith@lunarian.uk>
2023-06-01 15:10:29 +00:00
Benoit Marty
4d9c08bead Merge pull request #416 from Freezlex/develop
Fix App crash when joing specific room URL
2023-06-01 15:36:32 +02:00
Benoit Marty
feebff3d3d Merge pull request #478 from vector-im/feature/bma/slidingSyncCleanup
Sliding sync cleanup
2023-06-01 12:17:01 +02:00
Benoit Marty
b9494d2492 Merge pull request #494 from vector-im/feature/bma/checkCode
Check code
2023-06-01 11:53:53 +02:00
Benoit Marty
8cf61eaa55 Fix detected forbidden pattern. 2023-05-31 15:31:05 +02:00
Benoit Marty
6cbe7340ab Cleanup after PR review. 2023-05-31 10:34:03 +02:00
Benoit Marty
71e0f6ee0e Make the application compile with a SDK with no support for Oidc. 2023-05-30 15:59:58 +02:00
Benoit Marty
dcc8e7b732 Quality 2023-05-30 15:59:58 +02:00
Benoit Marty
a4e2a688c3 Cleanup 2023-05-30 15:59:58 +02:00
Benoit Marty
e8c24b65d1 Test for Oidc 2023-05-30 15:59:58 +02:00
Benoit Marty
a7eae1cda5 Add OIDC support 2023-05-30 15:14:57 +02:00
Benoit Marty
190b3cc990 Add EventType to avoid using hard-coding strings. 2023-05-30 14:11:26 +02:00
Benoit Marty
36cc65d7cd Comment out hard-coded sliding sync url. 2023-05-30 14:10:59 +02:00
ganfra
c89d9dd8e6 Media: handle PR review remarks 2023-05-26 19:09:51 +02:00
ganfra
c062d125ea Merge branch 'develop' into feature/fga/image_loading 2023-05-26 13:43:51 +02:00
Jorge Martin Espinosa
59b7507fed Display timestamps for text messages (#465) 2023-05-26 10:51:15 +00:00
ganfra
1ce0324570 Merge branch 'develop' into feature/fga/image_loading 2023-05-26 11:39:34 +02:00
ganfra
a2bd3792f2 Media: some more improvements over MediaViewer 2023-05-25 23:02:19 +02:00
ganfra
c31901bd67 Media: some code clean-up 2023-05-24 22:23:38 +02:00
Benoit Marty
a1038cd49c 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
922b63e746 Merge branch 'develop' into feature/fga/image_loading 2023-05-24 17:39:27 +02:00
ganfra
db90b5051c Media: add more tests 2023-05-24 17:06:27 +02:00
Benoit Marty
a2f2cd28f9 Fix compilation warnings. 2023-05-23 12:00:36 +02:00
renovate[bot]
3211eef1b8 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
463b9e0642 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
2c3fb8a549 Merge branch 'develop' into feature/fga/image_loading 2023-05-22 20:59:37 +02:00
Freezlex
10725b9585 Merge branch 'vector-im:develop' into develop 2023-05-22 10:26:58 +02:00
ganfra
1d00120b6a Media : some improvements and cleaning 2023-05-17 17:48:57 +02:00
ganfra
6f7d7a004a Media: update doc on MediaLoader 2023-05-16 14:50:54 +02:00
Florian Renaud
029eb876df Merge remote-tracking branch 'origin/develop' into
feature/fre/create_room_select_avatar
2023-05-16 14:18:29 +02:00
ganfra
ac1531390e Media: fix encrypted media 2023-05-16 11:51:11 +02:00
Benoit Marty
f62ea2096b 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
9318d27ba1 Merge branch 'develop' into feature/fga/image_loading 2023-05-15 20:07:00 +02:00
ganfra
18f1d2202b Merge pull request #428 from vector-im/feature/fga/update-rust-sdk-0.1.13
Feature/fga/update rust sdk 0.1.13
2023-05-15 19:32:04 +02:00
ganfra
9219530d4d SDK - fix compilation 2023-05-15 18:17:21 +02:00
Marco Romano
1b84f02073 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
3704564198 Use default material3 version again and cleanup @OptIn annotations.
Material3 is now 1.1.0
2023-05-15 12:28:31 +02:00
Ivars Julien
ff99cf3625 Merge branch 'vector-im:develop' into develop 2023-05-15 10:26:45 +02:00
ganfra
c191d5991d Media: improve media viewer 2023-05-12 18:48:24 +02:00
Florian Renaud
bf690c70b4 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
463e47c907 Add missing OptIn 2023-05-12 13:28:22 +02:00
Chris Smith
ebac9ef4b4 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
deea472001 Add more tests 2023-05-11 23:03:47 +02:00
Freezlex
dda51e1667 fix: Add dash to MATRIX_ROOM_IDENTIFIER_REGEX in order to allow URLS such as foo-bar:foo.bar 2023-05-11 20:43:35 +02:00
Jorge Martin Espinosa
ed16ea5e48 [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
5a0665a27a upload avatar within the room creation 2023-05-11 16:30:38 +02:00
renovate[bot]
081c86e8db Update dependency org.matrix.rustcomponents:sdk-android to v0.1.12 (#407)
* Update dependency org.matrix.rustcomponents:sdk-android to v0.1.12

* Fix Rust SDK update issues.

* Try to handle Rust memory more gracefully.

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jorge Martín <jorgem@element.io>
2023-05-10 15:27:15 +00:00
ganfra
72dea2f817 Introduce MatrixMediaSource 2023-05-05 19:47:10 +02:00
ganfra
affb928801 Merge develop into feature/fga/image_loading 2023-05-05 12:51:00 +02:00
Benoit Marty
3fc4604f9c Merge pull request #332 from vector-im/renovate/kotlin
Update kotlin
2023-05-05 12:12:29 +02:00