Commit Graph

140 Commits

Author SHA1 Message Date
Florian Renaud
0b7569c578 Remove useless composed call 2023-05-16 16:36:47 +02:00
Florian Renaud
d9d3fc3fa7 change wording for DM creation dialog 2023-05-16 16:36:47 +02:00
Florian Renaud
adc1c37789 restrict room name to single line 2023-05-16 16:36:47 +02:00
Florian Renaud
4fa0329ccd Close keyboard when textfields lose focus 2023-05-16 16:36:47 +02:00
Florian Renaud
52f2a32bf8 Select private privacy by default 2023-05-16 16:36:47 +02:00
Florian Renaud
8c6bf1ba18 Make the configure room screen scrollable 2023-05-16 16:36:46 +02:00
Florian Renaud
9c3a639fec Fix test compilation 2023-05-16 15:37:22 +02:00
Florian Renaud
da57e17dfb Use material3 ListItem 2023-05-16 14:29:18 +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
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
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
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
c22d181d8c Remove useless OptIn in tests 2023-05-12 10:05:39 +02:00
Florian Renaud
deea472001 Add more tests 2023-05-11 23:03:47 +02:00
Florian Renaud
5e38049e75 Fix test build 2023-05-11 17:34:40 +02:00
Florian Renaud
14fba4c559 Reformat some code 2023-05-11 17:31:56 +02:00
Florian Renaud
1b1dbca96b Clear cached image after room creation 2023-05-11 16:30:38 +02:00
Florian Renaud
5a0665a27a upload avatar within the room creation 2023-05-11 16:30:38 +02:00
Florian Renaud
4a444c24c4 Add missing tests 2023-05-11 16:30:38 +02:00
Florian Renaud
4fd3cb4c0e Add todo and screenshot tests 2023-05-11 16:30:37 +02:00
Florian Renaud
c81e673111 Fix tests after rebase 2023-05-11 16:30:37 +02:00
Florian Renaud
a38fbb3419 Delete cached avatar URI 2023-05-11 16:30:37 +02:00
Florian Renaud
554ce9f650 Rework and add remove button 2023-05-11 16:30:37 +02:00
Florian Renaud
6641afdd17 WIP pick avatar image 2023-05-11 16:30:37 +02:00
bmarty
367b659edc Sync Strings from Localazy 2023-05-08 00:08:48 +00:00
Florian Renaud
25adc1cc60 Fix navigation broken 2023-05-05 17:11:45 +02:00
Florian Renaud
95a90c0b1d Add tests 2023-05-04 16:34:38 +02:00
Florian Renaud
60e63c36dc Enable create DM action 2023-05-04 16:27:50 +02:00
Florian Renaud
e1dbc8fadf Perform get profile request on matrix ID 2023-05-04 16:27:50 +02:00
Chris Smith
54510e13f5 Add debounce/minimum length for add user search (#387)
This functionality was already implemented, it just didn't
have the right parameters configured for the user list
presenter.

Closes #109
2023-05-04 12:30:20 +00:00
Jorge Martin Espinosa
31ac97d17a [Media upload] Add media pickers to the Room screen and the composer (#380)
* Add media pickers to the Room screen and the composer.

* Fix exclude rules for translations
2023-05-04 11:51:03 +02:00
Chris Smith
5c935818c6 Move and refactor MatrixUser (#381)
Move and refactor MatrixUser

Instead of living in matrixui and having an AvatarData, this can
reside in the matrix module and just have the URL. An extension
method in matrixui can then provide the AvatarData when required.

This removes some small duplication, and pushes the UI-specific
information (i.e., what size of avatar is going to be rendered)
further down the stack. It also aligns the field names with those
used by the rust SDK (e.g. "displayName" instead of "userName").
2023-05-03 16:30:19 +00:00
Chris Smith
63168d4656 Search for users to start a new DM. (#376)
Search for users to start a new DM.

Hooks up the create room UI to the matrix client to get
search results. Searches are debounced for 500ms and
only executed when 3 or more characters are entered.

Wrap the result state so we can distinguish between
"no results because we haven't searched yet" and
"no results because the API returned nothing", and
add a "No results found" message in the UI for the
latter case.

Closes #95
2023-05-03 13:26:31 +00:00
Benoit Marty
977c87c141 Merge pull request #370 from vector-im/sync-localazy
Sync Strings
2023-05-02 17:45:50 +02:00
bmarty
066ee4f43a Sync Strings from Localazy 2023-05-01 00:09:50 +00:00
ganfra
f4c98aeef5 Merge branch 'develop' into feature/fga/some_room_related_fixes 2023-04-27 17:25:12 +02:00
bmarty
cd5e4458a6 Sync Strings from Localazy 2023-04-24 00:09:54 +00:00
ganfra
f02ee307cc Improve handling members 2023-04-20 18:21:47 +02:00
Jorge Martin Espinosa
e704870e3f Validate several ids in constructors (#336)
* Validate ids in constructors.

* Remove redundant `.value` usage in string interpolation.

* Make a distinction between `SessionId` and `UserId` in `TestData`.
2023-04-18 16:17:13 +00:00
Jorge Martin Espinosa
afd58f1634 Update Gradle to 8.1 and AGP to v8.0 (#329)
* Update AGP to 8.0.0.

* Set JAVA_HOME to JDK17

* Update lint version.

* Use right JDK for dependency analysis, replace deprecated env var.

* Upgrade to Gradle 8.1.

* Remove `@Supress(DSL_SCOPE_VIOLATION)` as it's no longer needed.

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-17 08:49:52 +00:00
Florian Renaud
76245f5b6b Revert "move instruction"
This reverts commit 197972cb61.
2023-04-14 17:27:47 +02:00
Florian Renaud
197972cb61 move instruction 2023-04-14 16:49:11 +02:00
Florian Renaud
064d4a9a7c Rename callbacks for clarity and consistency 2023-04-14 16:46:45 +02:00
Florian Renaud
5c74920a33 Add tests on create action 2023-04-14 16:26:14 +02:00
Florian Renaud
04ad36641d Handle create room action 2023-04-14 14:57:25 +02:00
Florian Renaud
d10e8b8f52 Add missing test 2023-04-14 14:54:38 +02:00
Florian Renaud
d8fd19a324 Fix privacy item binding 2023-04-14 14:05:07 +02:00
Florian Renaud
b88c1f35a7 update ConfigureRoomPresenter unit tests 2023-04-14 09:17:44 +02:00
Florian Renaud
5979421f48 rename state provider 2023-04-13 23:32:27 +02:00
Florian Renaud
0e1e1bbc76 Merge branch 'feature/fre/create_room_screen' into feature/fre/create_room_flow_persist_data 2023-04-13 23:28:19 +02:00