Kévin Commaille
d6f9f08e30
sdk: Split Matrix authentication methods in a separate API
...
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr >
2023-06-22 11:21:50 +02:00
Mauro Romito
528607f079
feat(bindings): get_notification_item filters out notifications given the push context
2023-06-22 11:09:45 +02:00
Ivan Enderlin
c9e3d7988f
feat(ui): Change how room_list::State is updated.
...
Instead of broadcasting an intermediate update for the `State`, it's
updated once after the sync.
2023-06-22 10:23:45 +02:00
aringenbach
726c1bca2c
ui: Filter redacted reactions from the timeline
2023-06-21 16:21:39 +00:00
Ivan Enderlin
d77a48cc2c
feat(ffi): Implement RoomList::room.
2023-06-21 17:20:05 +02:00
Ivan Enderlin
40602e7bba
chore(ffi): Update according to previous commits.
2023-06-21 17:11:26 +02:00
Ivan Enderlin
b774110235
chore(ui): Move methods from RoomListService inside RoomList.
...
This patch moves `RoomListService::entries` and `::filtered_entries`
inside `RoomList`. It also implements `RoomList::new`. Finally,
it implements `RoomListService::all_rooms` and re-implement
`RoomListService::invites`.
Basically:
```rust
// 1.
room_list.entries().await?
// 2.
room_list.invites().await?
```
becomes:
```rust
// 1.
room_list.all_rooms().await?.entries()
// 2.
room_list.invites().await?.entries()
```
`all_rooms` and `invites` both return a `RoomList`.
2023-06-21 17:00:30 +02:00
Jonas Platte
dccf0c29bf
Update reldbg profile to optimize our own packages too
...
… and enable incremental compilation for it.
2023-06-21 16:36:40 +02:00
Ivan Enderlin
b01bbe7e92
chore: Add missing copyright headers.
2023-06-21 16:29:55 +02:00
Ivan Enderlin
dc061308bd
chore(ui): Rename RoomList to RoomListService.
2023-06-21 16:29:03 +02:00
Ivan Enderlin
12a6f12461
feat(ui): Implement RoomList::stop_sync
...
feat(ui): Implement `RoomList::stop_sync`
2023-06-21 16:23:06 +02:00
Jonas Platte
895669e39b
sdk: Upload thumbnail and attachment in parallel
2023-06-21 14:56:22 +02:00
Jonas Platte
54288cb4cb
Fix clippy lints
2023-06-21 14:56:22 +02:00
Jonas Platte
b883ec000a
sdk: Clean up imports in encryption module
2023-06-21 14:56:22 +02:00
Jonas Platte
8a7da622d8
Rewrap comment
2023-06-21 14:56:22 +02:00
Ivan Enderlin
e9c19c2110
doc(crypto-nodejs): Add docs on how to use tracing for local Node dev
...
Add docs on how to use tracing for local Node dev
2023-06-21 14:29:32 +02:00
Ivan Enderlin
9c62b3459f
Merge pull request #2119 from matrix-org/valere/quick_fix_doc
...
Fix js binding bad comment
2023-06-21 14:17:46 +02:00
Ivan Enderlin
f9452959a0
doc(ui): Fix a typo.
2023-06-21 13:52:14 +02:00
Ivan Enderlin
4ec917ca48
feat(ffi): Implement RoomList::is_syncing.
2023-06-21 11:58:44 +02:00
Ivan Enderlin
54fc0f38ea
feat(ui): RoomList::sync no longer returns a TaskHandle.
...
Because there is `RoomList::stop_sync` now, which is better than dealing
with the `TaskHandle`.
2023-06-21 11:54:51 +02:00
Ivan Enderlin
fe0b458403
chore(ffi): Update according to previous commits.
2023-06-21 11:53:58 +02:00
Ivan Enderlin
6e8e4bb39c
feat(ui): Differentiate between error and termination in room_list::State.
...
This patch introduces `State::Error`, which replaces
`State::Termianted`. And a “new” `State::Terminated` state is added.
They do the same, but their semantics is different. `Error` is when an
error happened, and it's fine to restart the sync again. `Terminated`
is when a termination has been reached (either because SS sync-loop
has ended naturally, or because `RoomList::stop_sync` has been called),
in this case, it may not be fine to restart the sync automatically for
example.
2023-06-21 11:37:00 +02:00
Ivan Enderlin
7073e6f9e3
feat(ui): Remove the State::CarryOn state.
...
This patch removes the `State::CarryOn`. It turns out that `Running` and
`CarryOn` are doing exactly the same thing. So one of them is useless.
2023-06-21 11:14:29 +02:00
Ivan Enderlin
f0bc6d6698
chore(ui): Rename State::FirstRooms and State::AllRooms.
...
This patch renames `State::FirstRooms` to `State::SettingUp`, and
`State::Running` as requested by users.
It hides the “inner Sliding Sync logic”, the Sliding Sync lists etc.
2023-06-21 11:12:51 +02:00
Ivan Enderlin
a78ad89fdd
feat(ffi): Implement RoomList::stop_sync.
...
This patch implements `RoomList::stop_sync` on the FFI bindings.
Technically, it's no more useful to store the `TaskHandle` of the
`sync`, but it's still here, in case of.
2023-06-21 09:22:50 +02:00
Ivan Enderlin
ec5c1a3c70
feat(ui): Implement RoomList::stop_sync.
...
This patch implements `RoomList::stop_sync`. The goal is twofold:
1. It forces to stop the syncing, thus putting the state-machine into
the `Terminated` state, which is semantically better than “stop
polling the `sync`'s `Stream`”.
2. It literally forces to stop the syncing. It cancels pending futures,
it cancels in-flight HTTP requests etc. It's a more robust way to
stop the `RoomList` sync.
2023-06-21 09:20:44 +02:00
valere
1cc90c8ec0
Fix js binding bad comment
2023-06-21 09:11:09 +02:00
Valere
8a8074cada
Add first_time_seen timestamp to devices
2023-06-21 08:49:44 +02:00
Ivan Enderlin
644410afe9
feat(ui): TimelineBuilder::build logs more data
...
feat(ui): `TimelineBuilder::build` logs more data
2023-06-20 21:12:55 +02:00
Ivan Enderlin
9755af5a9a
Revert parts of #2111 because name is already cached in RoomInfo
...
Revert parts of #2111 because name is already cached in RoomInfo
2023-06-20 21:09:11 +02:00
Alfonso Grillo
673ac33579
ffi: Add location message type
2023-06-20 16:51:12 +00:00
Andy Balaam
5a0c35edb2
Revert parts of #2111 because name is already cached in RoomInfo
2023-06-20 14:58:17 +01:00
Nicolas Mauri
3f3fd58770
sdk: Add a Rules utility struct to manipulate a Ruleset
2023-06-20 14:56:33 +02:00
Ivan Enderlin
a496471cf3
test(base): Tests for finding DM rooms
...
Tests for finding DM rooms
2023-06-20 12:37:47 +02:00
Andy Balaam
2a2ce5f05c
Already-passing tests for get_dm_room including left rooms
2023-06-20 11:05:37 +01:00
Andy Balaam
40aab0c426
Already-passing tests for keeping users in direct_targets when they leave a DM
2023-06-20 11:05:37 +01:00
Andy Balaam
0e5d8bc904
Fix double-clone
2023-06-20 11:25:29 +02:00
Andy Balaam
02449a73ea
Fix clippy warnings
2023-06-20 11:25:29 +02:00
Andy Balaam
7f8bc8f1c2
Avoid holding a lock over an await
2023-06-20 11:25:29 +02:00
Andy Balaam
149a9d4099
Cache room display name if it comes in from sync
2023-06-20 11:25:29 +02:00
Andy Balaam
75eb94357e
Split out tests for room display names
2023-06-20 11:25:29 +02:00
Andy Balaam
d84c8d91b5
Fix typo in comment
2023-06-20 11:25:29 +02:00
Jonas Platte
5273fa6f42
sdk: Move target-specific HTTP code into new submodules
2023-06-20 11:16:13 +02:00
Jonas Platte
4c1a351ead
sdk: Remove HttpSend in favor of allowing reqwest customization
2023-06-20 11:16:13 +02:00
Jonas Platte
ba9d8294b4
ffi: Make upload progress observable
2023-06-20 11:16:13 +02:00
Jonas Platte
ac140c192a
Make upload progress observable
2023-06-20 11:16:13 +02:00
Jonas Platte
a668822fec
Simplify HttpClient::send_request signature
2023-06-20 11:16:13 +02:00
Richard van der Hoff
6fc90609b6
Release crypto-js 0.1.0-alpha.11 ( #2112 )
2023-06-19 18:09:52 +00:00
Jonas Platte
93c911add3
ui: Use method syntax for shared::Observable methods
2023-06-19 16:46:43 +02:00
Benjamin Bouvier
55aad67338
Remove the sqlite-lock binary from the main repo
...
Will move it to a personal repository of mine.
Signed-off-by: Benjamin Bouvier <public@benj.me >
2023-06-19 15:42:58 +02:00