Andy Balaam
dcd5a27a2f
Rename room_to_add->room_to_store
2023-06-12 10:34:04 +02:00
Andy Balaam
dafee483fa
Refactor process_sliding_sync to extract a method for dealing with rooms
2023-06-12 10:34:04 +02:00
Andy Balaam
0b4fba81d8
Test for adding an invited room to the client and invite list
2023-06-12 10:34:04 +02:00
Andy Balaam
34a56a70a0
Test for finding avatars in invite rooms
2023-06-12 10:34:04 +02:00
Andy Balaam
76a7ad0cbf
Test for finding an avatar in a room via sliding sync
2023-06-12 10:34:04 +02:00
Ivan Enderlin
81628d15b8
doc(ffi): Fix a link.
2023-06-12 10:06:57 +02:00
Ivan Enderlin
39a4d039dd
chore(ffi): Remove ability to use a custom sliding sync proxy URL.
2023-06-12 09:58:33 +02:00
Ivan Enderlin
d24a1d8d6d
feat(ui): Update the Sliding Sync proxy URL when creating RoomList.
2023-06-12 09:21:08 +02:00
Ivan Enderlin
2f433138dd
chore(ffi): Make Clippy happy.
2023-06-12 09:07:39 +02:00
Ivan Enderlin
6301f32ee5
chore(ffi): Rename RoomListRoom to RoomListItem.
2023-06-12 09:07:39 +02:00
Ivan Enderlin
7ae8ee14eb
feat(ffi): RoomListRoom::name and ::latest_event are non-async.
2023-06-12 09:07:39 +02:00
Ivan Enderlin
070965fc87
feat(ffi): Implement RoomList::rooms.
...
This patch implements `RoomList::rooms` to fetch one room. The type
name is `RoomListRoom` to avoid any collision with an existing `Room`
type already.
`RoomListRoom` implements `name`, `timeline` and `latest_event`.
2023-06-12 09:07:39 +02:00
Ivan Enderlin
e2480be47f
feat(ffi): Make RoomList::entries async.
...
Because we can!
2023-06-12 09:07:39 +02:00
Ivan Enderlin
cb51c766a8
feat(ffi): Rename “observer” to “listener”.
2023-06-12 09:07:39 +02:00
Ivan Enderlin
68c19f4129
feat(ffi): First step for RoomList in FFI bindings.
2023-06-12 09:07:39 +02:00
Ivan Enderlin
5416ba06f5
feat(ui): Merge RoomList::state and RoomList::state_stream.
...
By returning a `Subscriber`, one can call `Subscriber::get` to get the
inner value. Thus, having `state` and `state_stream` is useless. It's
possible to return have `state` which returns `Subscriber`, and we get
one value for two usages.
2023-06-12 09:07:39 +02:00
Ivan Enderlin
623332b931
feat(ffi): Extract TaskHandle into itw own module.
2023-06-12 09:07:39 +02:00
Ivan Enderlin
d4e983e559
feat(ui): Rename State::Enjoy to State::CarryOn.
2023-06-12 09:07:39 +02:00
Mauro
6444848511
docs: updated readme - rust version ( #2047 )
...
* docs: update readme
* removing error
2023-06-09 13:16:09 +00:00
Andy Balaam
11adcf425c
In sliding sync, do all the same processing on an invited room as a joined one
...
The example in MSC3575 shows a room with invite_state property, but also
timeline, joined_count etc. properties. That may or may not be very
likely in practice, but I think it makes sense to check for all these
properties even when the room is an invite, and use them if they are
present.
2023-06-09 13:25:04 +01:00
Andy Balaam
7e197ec8d4
Simplify invited room sliding sync processing
...
Added some comments based on my understanding of MSC3575. Previously we
had a FIXME about how we were setting the room state to invite or join
based on the presence or absence of the invite_state property. I think
this behaviour is correct, so I added some comments explaining why.
The functional change here is to note that we call
store.get_or_create_stripped_room to find/create the stripped room, and
this actually deletes any room of this ID that is in the store, so our
later call to store.get_room would always fall back to getting the
stripped room, which we already have, so there was no need to do the
get_room call at all.
2023-06-09 13:14:58 +01:00
Andy Balaam
9d943e7c62
Clarify in tests that invite_state contains very minimal JSON
2023-06-09 13:14:58 +01:00
Andy Balaam
8c2cc522bc
Test canonical aliases in invited rooms via sliding sync
2023-06-09 12:54:43 +01:00
Andy Balaam
4a04c70c45
Handle required state in invited rooms as well as normal
2023-06-09 12:54:43 +01:00
Andy Balaam
ee8f94cb95
Rename room_to_add->room_to_store
2023-06-09 12:54:43 +01:00
Andy Balaam
24ff62befc
Refactor process_sliding_sync to extract a method for dealing with rooms
2023-06-09 12:54:43 +01:00
Andy Balaam
a85c481368
Test for adding an invited room to the client and invite list
2023-06-09 12:52:26 +01:00
Andy Balaam
5545c98a85
Test for finding avatars in invite rooms
2023-06-09 12:52:26 +01:00
Andy Balaam
ac7c6ba84c
Test for finding an avatar in a room via sliding sync
2023-06-09 12:52:26 +01:00
Kévin Commaille
ae2f834345
sqlite: Return an error when DB version is invalid or missing ( #2038 )
...
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr >
2023-06-09 11:02:33 +00:00
Andy Balaam
0e30d85df4
Provide no event_id for the name state event when it comes via update_name
...
Also respond to a couple of minor review comments
2023-06-08 18:30:20 +02:00
Andy Balaam
02d03c55f2
Update the name of a room during sliding sync processing
2023-06-08 18:30:20 +02:00
Andy Balaam
0cff8f3697
Allow updating the name in a RoomInfo
2023-06-08 18:30:20 +02:00
Andy Balaam
0f5906a0fa
Tests for processing sliding sync responses
2023-06-08 18:30:20 +02:00
Jonas Platte
a977b3a8d5
ui: Use stream_assert for timeline unit tests
2023-06-08 12:25:58 +02:00
Jonas Platte
6c6c43e709
ui: Filter virtual timeline items for some tests
2023-06-08 12:25:58 +02:00
Benjamin Bouvier
43bac4995f
chore: rename homeserver to sliding_sync_proxy in sliding sync
...
Signed-off-by: Benjamin Bouvier <public@benj.me >
2023-06-08 11:13:40 +02:00
Jonas Platte
c8b74bec0d
ci: Fixes to toolchain installation
2023-06-07 17:25:24 +02:00
Jonas Platte
b5339ceaba
ui: Activate sdk's testing feature for unit tests
...
Fixes running `cargo test` without any flags from the crate root.
2023-06-07 17:25:24 +02:00
Jonas Platte
0898c76bb7
crypto: Simplify is_cross_signing_trusted
2023-06-07 17:25:24 +02:00
Jonas Platte
c19d72f0f4
Use Option::is_some_and where applicable
2023-06-07 17:25:24 +02:00
Jonas Platte
0b9c082e11
ffi: Add EventTimelineItem::transaction_id
2023-06-07 16:40:14 +02:00
Jonas Platte
aa3adbd53d
ui: Don't wait on prev_batch token for more than 3s
2023-06-07 16:21:48 +02:00
Jonas Platte
87510a5bc2
ffi: Add wait_for_token to PaginationOptions
2023-06-07 16:21:48 +02:00
Jonas Platte
af870fcff3
ui: Allow waiting for token before starting pagination
2023-06-07 16:21:48 +02:00
Jonas Platte
1e10a54d3d
ui: Fix clippy lints
2023-06-07 16:21:48 +02:00
Jonas Platte
bfce4d1006
ui: Merge timeline::room_ext module into timeline::traits
2023-06-07 16:21:48 +02:00
Jonas Platte
2bcc70beb9
ui: Move timeline-internal traits into separate module
2023-06-07 16:21:48 +02:00
Damir Jelić
7552f4f72a
Merge pull request #2028 from matrix-org/release-matrix-sdk-crypto-js-v0.1.0-alpha.10
...
Bindings JS: New release `matrix-sdk-crypto-js v0.1.0-alpha.10`
2023-06-07 15:51:24 +02:00
Jonas Platte
415c13fa90
ui: Add a test for retrying a failed send
2023-06-07 13:29:42 +02:00