Commit graph

86 commits

Author SHA1 Message Date
ganfra
62b66b2111 Media : some improvements and cleaning 2023-05-17 17:48:57 +02:00
ganfra
5176499195 Media: fix encrypted media 2023-05-16 11:51:11 +02:00
ganfra
4b49d40801 Merge branch 'develop' into feature/fga/image_loading 2023-05-15 20:07:00 +02:00
ganfra
3319f6de01 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
b3c6d64fa3 SDK - fix compilation 2023-05-15 18:17:21 +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
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
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
renovate[bot]
474bc00f8e 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
4236b69705 Introduce MatrixMediaSource 2023-05-05 19:47:10 +02:00
ganfra
c3a1297c18 Merge develop into feature/fga/image_loading 2023-05-05 12:51:00 +02:00
Benoit Marty
ebf3ebfb54 Merge pull request #332 from vector-im/renovate/kotlin
Update kotlin
2023-05-05 12:12:29 +02:00
Florian Renaud
310be7a14a Perform get profile request on matrix ID 2023-05-04 16:27:50 +02:00
renovate[bot]
8c00b19ba9 Update kotlin 2023-05-03 17:40:41 +00:00
Chris Smith
581c5ab2d2 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
99f571b4eb 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
ganfra
4b60b14550 Merge branch 'develop' into feature/fga/image_loading 2023-05-02 16:23:47 +02:00
ganfra
ca6a47edcd Merge pull request #353 from vector-im/feature/fga/some_room_related_fixes
Feature/fga/some room related fixes
2023-05-02 13:20:10 +02:00
ganfra
154bd5e714 Update rust-sdk : make the app compiles again 2023-04-28 18:26:32 +02:00
ganfra
23a7b871f7 RoomMembers: change the API again.. 2023-04-28 15:04:33 +02:00
ganfra
64c50d4468 Ignore/Unignore: makes more sense to be at the client level than room 2023-04-27 22:13:25 +02:00
ganfra
40f3f2873b Merge branch 'develop' into feature/fga/some_room_related_fixes 2023-04-27 17:25:12 +02:00
ganfra
4b5ca3acdd Media: change the API 2023-04-27 12:06:01 +02:00
Jorge Martin Espinosa
2376d32b9e [Room Details] Block & unblock user (#340) 2023-04-26 16:14:44 +02:00
ganfra
c920dfb97a MediaResolver: exposes Result instead of Nullable 2023-04-26 16:13:09 +02:00
ganfra
1ab96e2f34 Some clean up 2023-04-25 11:17:05 +02:00
ganfra
1d690fdd00 Merge develop into feature/fga/some_room_related_fixes 2023-04-24 18:13:12 +02:00
ganfra
dfabc02bf6 Timeline : Add isInit to avoid calling rust methods when the timeline is not ready. 2023-04-24 10:43:37 +02:00
Chris Smith
17e645f507 Merge pull request #348 from vector-im/feature/cjs/accept-reject-invites
Accepting and declining invites
2023-04-21 16:06:07 +01:00
renovate[bot]
61a01b003b Update kotlin 2023-04-21 16:29:06 +02:00
Chris Smith
ff5672597a Accepting and declining invites
Hook up accept and decline buttons in the invites UI. Accept
will attempt to accept and then navigate to the room; decline
shows a confirmation dialog.

Fixes #106
2023-04-21 15:01:27 +01:00
ganfra
90bfe97250 Room : continue improving members loading 2023-04-21 14:39:47 +02:00
ganfra
a1869a3019 Improve handling members 2023-04-20 18:21:47 +02:00
Chris Smith
88360802af Merge pull request #297 from csmith/102-show-invites-list
Feat: show invites list
2023-04-19 12:40:29 +01:00
Chris Smith
34cc352053 Invite list view
Adds a CTA on the room list to view invites if there are any.

The invite list presents each invite with accept/decline buttons
and (for room invites) the sender details.

Fixes #102
2023-04-19 10:20:48 +01:00
Jorge Martin Espinosa
fae3417181 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
30eb794d9c [Room details] DM designs (#313)
* Implement member details screen

* Add DM-only sections to the room details screen.
2023-04-17 16:41:10 +00:00
Jorge Martin Espinosa
97917e7a2d Update the Rust SDK to v0.1.9 (#318)
* Update the Rust SDK to v0.1.7.

* Try to have the same setup for the build apk job and maestro.

* Add option to run maestro manually.

* Update to v0.1.9 (0.1.7 and 0.1.8 were broken in x86_64).
2023-04-17 17:43:21 +02:00
Jorge Martin Espinosa
de010545fb 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
13f1ca3a60 Merge pull request #324 from vector-im/feature/fre/create_room
Handle create room action
2023-04-14 17:50:29 +02:00
ganfra
f001460a3a Merge branch 'develop' into feature/fga/clean_up 2023-04-14 17:15:40 +02:00
ganfra
776e9bd221 Add some tests on RoomFlowNode 2023-04-14 15:34:41 +02:00
Florian Renaud
81fc3406c8 Handle create room action 2023-04-14 14:57:25 +02:00
Florian Renaud
33bac15b44 Merge remote-tracking branch 'origin/develop' into feature/fre/create_room_flow_persist_data 2023-04-13 23:45:33 +02:00
Jorge Martin Espinosa
851c0eeb8f [Room Details] Implement member details screen (#302) 2023-04-13 16:41:57 +00:00
Florian Renaud
f5f322c14c Add create room API 2023-04-13 16:19:55 +02:00
ganfra
281f90e148 Some clean up on room details 2023-04-12 12:22:13 +02:00
Benoit Marty
287fca5438 UnifiedPush WIP 2023-04-12 09:49:23 +02:00