Commit Graph

8 Commits

Author SHA1 Message Date
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
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
Florian Renaud
490ed7ef98 Fix unit test 2023-04-14 00:22:55 +02:00
Florian Renaud
a3bb817d1f Check if user is not already selected 2023-04-13 23:37:42 +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
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