Commit Graph

119 Commits

Author SHA1 Message Date
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
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
Florian Renaud
d5e62dfbf1 Split ConfigureRoomView into multiple files 2023-04-13 23:20:30 +02:00
Florian Renaud
54b76078a8 Pass item to RoomPrivacyOption 2023-04-13 18:06:17 +02:00
Florian Renaud
878b9ccf33 Fix hardcoding privacy option 2023-04-13 17:56:18 +02:00
Florian Renaud
4337a95a39 use derived state 2023-04-13 17:49:14 +02:00
Florian Renaud
e2e641c751 Remove wildcard import 2023-04-13 16:58:53 +02:00
Florian Renaud
ea3c5618af Fix unit tests 2023-04-13 16:58:53 +02:00
Florian Renaud
f3b64e0ca5 do not reverse selected user list ordering & add autoscroll when selecting user 2023-04-13 16:19:57 +02:00
Florian Renaud
d4bc00aae4 Show toast for not implemented actions 2023-04-13 16:19:56 +02:00
Florian Renaud
9cbfa4096a Remove useless selectedUsers parameter 2023-04-13 16:19:56 +02:00
Florian Renaud
93b06116a3 Introduce ConfigureRoomFlowNode and bind CreateRoomScope to this flow 2023-04-13 16:19:56 +02:00
Florian Renaud
8de8dca653 Improve AddPeople node 2023-04-13 16:19:56 +02:00
Florian Renaud
8950428cd3 Persist selected users in data store 2023-04-13 16:19:56 +02:00
Florian Renaud
ca7e8bca0c Fix tests 2023-04-13 16:19:56 +02:00
Florian Renaud
4aad2d5ce2 Rename MatrixUserDataSource to UserListDataSource 2023-04-13 16:19:55 +02:00
Florian Renaud
5364bbd2cb Update screenshots 2023-04-13 16:19:55 +02:00
Florian Renaud
cf8e91c3cf Split user list views into multiple files 2023-04-13 16:19:55 +02:00
Florian Renaud
6b3bb17bb2 Add RemoveFromSelection event in room configuration screen 2023-04-13 16:19:55 +02:00
Florian Renaud
5796789a68 Add CreateRoomScope with data store 2023-04-13 16:19:55 +02:00
Florian Renaud
5699dcf39e Fix modifier usage 2023-04-13 16:18:33 +02:00
Florian Renaud
2e34c8e8eb declare node callback in local variable 2023-04-13 15:54:48 +02:00
Florian Renaud
2e013c15d8 reorder params 2023-04-13 15:49:46 +02:00