Commit Graph

71 Commits

Author SHA1 Message Date
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
Benoit Marty
3fc4604f9c Merge pull request #332 from vector-im/renovate/kotlin
Update kotlin
2023-05-05 12:12:29 +02:00
Florian Renaud
e1dbc8fadf Perform get profile request on matrix ID 2023-05-04 16:27:50 +02:00
renovate[bot]
87e57f5b51 Update kotlin 2023-05-03 17:40:41 +00: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
ganfra
56f6ad69a9 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
11db3195e0 Update rust-sdk : make the app compiles again 2023-04-28 18:26:32 +02:00
ganfra
d7cd8a2915 RoomMembers: change the API again.. 2023-04-28 15:04:33 +02:00
ganfra
884cdb9575 Ignore/Unignore: makes more sense to be at the client level than room 2023-04-27 22:13:25 +02:00
ganfra
f4c98aeef5 Merge branch 'develop' into feature/fga/some_room_related_fixes 2023-04-27 17:25:12 +02:00
Jorge Martin Espinosa
aef2b38983 [Room Details] Block & unblock user (#340) 2023-04-26 16:14:44 +02:00
ganfra
c9370315ad Some clean up 2023-04-25 11:17:05 +02:00
ganfra
c32c4c31b0 Merge develop into feature/fga/some_room_related_fixes 2023-04-24 18:13:12 +02:00
ganfra
b6179b9760 Timeline : Add isInit to avoid calling rust methods when the timeline is not ready. 2023-04-24 10:43:37 +02:00
Chris Smith
709101ae8e 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]
9f88cb4886 Update kotlin 2023-04-21 16:29:06 +02:00
Chris Smith
ae97a034e5 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
b0152059ff Room : continue improving members loading 2023-04-21 14:39:47 +02:00
ganfra
f02ee307cc Improve handling members 2023-04-20 18:21:47 +02:00
Chris Smith
9a54bc9168 Merge pull request #297 from csmith/102-show-invites-list
Feat: show invites list
2023-04-19 12:40:29 +01:00
Chris Smith
e90211b5d8 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
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
aa12feb4d4 [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
c8fcf9549b 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
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
c2927140a6 Merge pull request #324 from vector-im/feature/fre/create_room
Handle create room action
2023-04-14 17:50:29 +02:00
ganfra
7e25371bf2 Merge branch 'develop' into feature/fga/clean_up 2023-04-14 17:15:40 +02:00
ganfra
a166636060 Add some tests on RoomFlowNode 2023-04-14 15:34:41 +02:00
Florian Renaud
04ad36641d Handle create room action 2023-04-14 14:57:25 +02:00
Florian Renaud
6e0730a02a 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
97b5fa7ea8 [Room Details] Implement member details screen (#302) 2023-04-13 16:41:57 +00:00
Florian Renaud
335eb49b6c Add create room API 2023-04-13 16:19:55 +02:00
ganfra
105fce0b90 Some clean up on room details 2023-04-12 12:22:13 +02:00
Benoit Marty
95bafe4059 UnifiedPush WIP 2023-04-12 09:49:23 +02:00
Benoit Marty
1a33f6fc50 Merge branch 'develop' into feature/bma/push 2023-04-06 09:13:24 +02:00
Florian Renaud
4bbc2aa3c2 Merge remote-tracking branch 'origin/develop' into feature/fre/start_chat_with_matrix_id 2023-04-05 17:43:52 +02:00
Benoit Marty
7e7aca4a53 Add some tests (mainly imported from EA). Also change type from String to SessionId, RoomId, etc. 2023-04-05 16:59:17 +02:00
Benoit Marty
62db96476d Protect call to getNotificationItem 2023-04-05 16:59:17 +02:00
Benoit Marty
961d0ecdbc Add Result + Dispatcher on SDK call. 2023-04-05 16:59:17 +02:00
Benoit Marty
1f09f5f0eb Retrieve notification - WIP 2023-04-05 16:32:28 +02:00
Benoit Marty
be8ce499d0 Register pusher - WIP 2023-04-05 16:31:43 +02:00
Benoit Marty
80fdd5f127 Use correct type (it's a type alias) 2023-04-05 16:31:09 +02:00
Jorge Martin Espinosa
9064481b4c [Room Details] Leave room (#296)
* Add leave room functionality to the Room Details screen

* Add snackbar message throught `SnackbarDistpacher`
2023-04-05 15:36:41 +02:00
Florian Renaud
5899211413 Merge remote-tracking branch 'origin/develop' into
feature/fre/start_chat_with_matrix_id
2023-04-05 10:16:33 +02:00
Jorge Martin Espinosa
d7a6779343 [Room member list] Display room member list (#276)
* Implement room member list

* Move timeline initialization back to `TimelinePresenter`.

* Fix crash when the `innerRoom` inside a `RustMatrixRoom` is destroyed but `syncUpdateFlow` is still running.

* Address review comments
2023-04-04 16:07:57 +00:00
Florian Renaud
678a10acef Pass null name when creating DM 2023-04-04 15:45:58 +02:00
Florian Renaud
6450fc5724 Create or retrieve DM 2023-04-04 15:34:40 +02:00
ganfra
cfefe89b3e Makes MatrixClient Closeable outside of logout function. 2023-03-30 20:52:32 +02:00
Benoit Marty
f0837972ce Small API change in SDK 0.1.5: RustRoomMember 2023-03-29 10:41:10 +02:00