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
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
Jonas Platte
0ca8369a76
ui: Fix clippy warnings
2023-06-07 13:29:42 +02:00
Jonas Platte
dc05d17330
Upgrade eyeball-im-util
2023-06-07 13:29:42 +02:00
Jonas Platte
9505ace8e2
ffi: Add Room::retry_send
2023-06-07 13:29:42 +02:00
Jonas Platte
df7beb4afd
ui: Add Timeline::retry_send
2023-06-07 13:29:42 +02:00
Jonas Platte
f1e62b0bb8
ci: Run coverage when PR is ready for review
2023-06-07 11:31:39 +02:00
Ivan Enderlin
4e29e6e347
feat(ui): Disable caching and make Timelines lazy
...
feat(ui): Disable caching and make `Timeline`s lazy
2023-06-07 11:29:22 +02:00
Florian Duros
81d4dc8b6e
matrix-sdk-crypto-js v0.1.0-alpha.10
matrix-sdk-crypto-js-0.1.0-alpha.10
2023-06-07 10:07:05 +02:00
Florian Duros
65bdb1a2e3
Update CHANGELOG.md
2023-06-07 10:06:51 +02:00
Damir Jelić
0e5e8a205c
Merge pull request #2020 from matrix-org/florianduros/bindings/add-missing-key-identity
...
Bindings JS: Add missing keys to `UserIdentity` and `OwnUserIdentity`
2023-06-07 10:00:20 +02:00
Ivan Enderlin
5c182a0d03
sliding sync: enable read-receipts in the common extensions
...
sliding sync: enable read-receipts in the common extensions
2023-06-07 09:58:27 +02:00
Ivan Enderlin
3acb56aa31
feat(ui): Make Room::timeline and ::sneaky_timeline lazy.
...
This patch uses a new `async-once-cell` crate to make `Room::timeline`
and `Room::sneaky_timeline` by making them lazy. Their values are
computed lazily, on-demand, when calling the `Room::timeline` method or
`Room::latest_event`.
2023-06-07 09:51:56 +02:00
Ivan Enderlin
a2cefedf73
RoomList API: enable account_data extension by default
...
`RoomList` API: enable `account_data` extension by default
2023-06-07 09:35:04 +02:00
Ivan Enderlin
169038504d
fix(ui): Disable Sliding Sync caching in RoomList.
2023-06-07 09:31:52 +02:00
Benjamin Bouvier
d3ddfabaef
sliding sync: enable read-receipts in the common extensions
...
Signed-off-by: Benjamin Bouvier <public@benj.me >
2023-06-06 20:09:03 +02:00
Benjamin Bouvier
027db88078
sliding sync: have the RoomApi use add_list instead of add_cached_list until the perf issue of reloading has been fixed
...
Signed-off-by: Benjamin Bouvier <public@benj.me >
2023-06-06 19:36:42 +02:00
Benjamin Bouvier
3b10c235ab
sliding sync: enable account data extension in room list API
...
This extension was enabled by both ElementX apps by default, along with the e2ee / to-device extensions that will be handled
by the new Notification API. To maintain the current behavior, it's important to re-enable this extension before getting
RoomList in production.
Signed-off-by: Benjamin Bouvier <public@benj.me >
2023-06-06 19:35:20 +02:00