Commit graph

8 commits

Author SHA1 Message Date
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
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
Florian Renaud
4c2237a63e Fix unit test 2023-04-14 00:22:55 +02:00
Florian Renaud
841a24a3a4 Check if user is not already selected 2023-04-13 23:37:42 +02:00
Florian Renaud
2ee536da3b do not reverse selected user list ordering & add autoscroll when selecting user 2023-04-13 16:19:57 +02:00
Florian Renaud
6a8179a5b5 Persist selected users in data store 2023-04-13 16:19:56 +02:00
Florian Renaud
34515e4b49 Rename MatrixUserDataSource to UserListDataSource 2023-04-13 16:19:55 +02:00
Jorge Martin Espinosa
11f041d940 [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