Commit Graph

15 Commits

Author SHA1 Message Date
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
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
b0152059ff Room : continue improving members loading 2023-04-21 14:39:47 +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
a3bb817d1f Check if user is not already selected 2023-04-13 23:37:42 +02:00
Florian Renaud
c691e2e3d3 Use immutableList 2023-04-13 23:30:33 +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
8950428cd3 Persist selected users in data store 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
6c4cc71d3f Use content padding 2023-04-13 15:44:44 +02:00
Florian Renaud
ac5f50d264 WIP create room screen 2023-04-13 15:44:44 +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