Damir Jelić
774bff00a0
refactor(multiverse): Events view
2025-04-07 14:17:10 +02:00
Damir Jelić
d6196e6c5c
refactor(multiverse): Move the linked chunk view into a popout widget
2025-04-07 14:17:10 +02:00
Damir Jelić
b49fd2b473
feat(multiverse): Only open the read receipt screen if a room is selected
2025-04-07 14:17:10 +02:00
Damir Jelić
f31119a013
refactor(multiverse): Turn the read receipt rendering logic into a widget
2025-04-07 14:17:10 +02:00
Damir Jelić
fb4caf40aa
refactor(multiverse): Make the Status struct a true widget
2025-04-07 14:17:10 +02:00
Damir Jelić
238fbdbe82
refactor(multiverse): Use the Mutex from the common crate to avoid calling unwrap
2025-04-07 14:17:10 +02:00
Damir Jelić
a1d42cdf06
refactor(multiverse): Shorten some overly long lines
2025-04-07 14:17:10 +02:00
Damir Jelić
1c134a78de
refactor(multiverse): Use a mpsc channel to propagate status messages to the status widget
2025-04-07 14:17:10 +02:00
Damir Jelić
b5d1c14e29
refactor(multiverse): Rename set_status_message to set_message
2025-04-07 14:17:10 +02:00
Damir Jelić
a28ec70816
refactor(multiverse): Move the set_status_message under the Status widget
2025-04-07 14:17:10 +02:00
Damir Jelić
e1b393c39f
refactor(multiverse): Move the status message into a separate module
2025-04-07 14:17:10 +02:00
Damir Jelić
a345c47a31
refactor(multiverse): Merge the two App impl blocks
2025-04-07 14:17:10 +02:00
Damir Jelić
64feee41ef
refactor(multiverse): Move the room subscription logic into the RoomList
2025-04-07 14:17:10 +02:00
Damir Jelić
9f947e019f
refactor(multiverse): Split the get_selected_room_id method into two methods
2025-04-07 14:17:10 +02:00
Damir Jelić
be74cb4a16
refactor(multiverse): Move the get_selected_room_id under the RoomList
2025-04-07 14:17:10 +02:00
Damir Jelić
409f08dc2b
refactor(multiverse): Simplify the constructor
2025-04-07 14:17:10 +02:00
Damir Jelić
a94a03766b
refactor(multiverse): Move the closure listening for new data into a separate method
2025-04-07 14:17:10 +02:00
Damir Jelić
988fd18b78
refactor(multiverse): Move the RoomList widget into a separate module
2025-04-07 14:17:10 +02:00
Damir Jelić
68b848602a
refactor(multiverse): Turn the RoomList struct into a widget
2025-04-07 14:17:10 +02:00
Damir Jelić
f7d6fe2dbf
refactor(multiverse): Rename StatefulList to RoomList
...
While we're at it, move the impl block closer to the struct.
2025-04-07 14:17:10 +02:00
Damir Jelić
c2a9523cbb
refactor(multiverse): Remove the generics from the StatefulList struct
2025-04-07 14:17:10 +02:00
Ivan Enderlin
ee879354b7
doc(sqlite,ffi): Add #4894 in the CHANGELOG.mds.
2025-04-07 14:05:40 +02:00
Ivan Enderlin
c3fd571623
feat(ffi): Add ClientBuilder::system_is_memory_constrained().
...
This patch adds `ClientBuilder::system_is_memory_constrained`
so that the client can be built with that in mind.
Behind the scene, for the moment, it only calls
`SqliteStoreConfig::with_low_memory_config` instead of
`SqliteStoreConfig::new`, but this flag can be used for other use cases.
2025-04-07 14:05:40 +02:00
Ivan Enderlin
52ec6a4539
feat(sqlite): Add SqliteStoreConfig::with_low_memory_config.
...
This patch adds a new constructor for `SqliteStoreConfig`, which sets
some defaults tailored for low memory usage.
This patch adds tests asserting the defaults for `new` and
`with_low_memory_config`.
2025-04-07 14:05:40 +02:00
Ivan Enderlin
a57322466c
refactor(base): Simplify the e2ee response processor.
...
This patch explores a way to simplify the call sites of the `e2ee`
response processor by creating one response processor for `/v3/sync` and
one for MSC4186. The idea is to:
- simplify the call site by having less code,
- isolating the “dispatch” of a the response values into the `e2ee`
response processor,
- make it easier to test this response processor based on a `Response`
structs directly.
2025-04-07 13:52:29 +02:00
Ivan Enderlin
90ce6e85ad
refactor(base): Centralise processors that require e2e-encryption.
2025-04-07 13:52:29 +02:00
Ivan Enderlin
e94fd64276
refactor(base): BaseClient uses response processors and remove duplicated code.
...
This patch updates
`BaseClient::receive_sync_repsonse_with_requested_required_states` to
use the `response_processors`. This patch also removes duplicated code
with the processors.
2025-04-07 13:52:29 +02:00
Ivan Enderlin
0c7cf58d4d
refactor(base): BaseClient::process_sliding_sync_e2ee uses response processors.
2025-04-07 13:52:29 +02:00
Ivan Enderlin
e3b2e0fa3e
feat(base): Add the Verification request processor.
2025-04-07 13:52:29 +02:00
Ivan Enderlin
4619221429
feat(base): Add the DecryptLatestEvents response processor.
2025-04-07 13:52:29 +02:00
Ivan Enderlin
9b316ed405
feat(base): Add the E2EE response processor.
2025-04-07 13:52:29 +02:00
Ivan Enderlin
0a633ca75c
feat(base): Add the Context struct.
...
This patch introduces a new `Context` type that holds the state changes
and the room info notable updates. Processors will exchange this
context. That's the only data that is mutable and exchangeable between
processors.
2025-04-07 13:52:29 +02:00
Ivan Enderlin
2e57733f05
refactor(base): Move response_processors.rs into response_processors/account_data.rs.
...
This patch creates the `response_processors` module and
moves the existing `response_processors.rs` file into
`response_processors/account_data.rs`.
2025-04-07 13:52:29 +02:00
Kévin Commaille
b94be8d509
Upgrade tokio
...
To get rid of advisory
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr >
2025-04-07 12:04:06 +02:00
Kévin Commaille
24e6d780fc
Upgrade Ruma to version 0.12.2
...
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr >
2025-04-07 12:04:06 +02:00
Ivan Enderlin
d9157e5b83
refactor(ffi): Call methods on Room instead of redoing the same work.
...
This patch updates `Room::report_content` and `Room::report_room` to
call the same methods on `matrix_sdk` instead of re-implementing them.
2025-04-07 11:54:25 +02:00
dependabot[bot]
b4a8089b40
chore(deps): Bump openssl from 0.10.70 to 0.10.72
2025-04-04 23:28:09 +02:00
Kévin Commaille
a736dc9f96
doc(sdk): Cleanup changelog entries for Oidc/OAuth API changes
...
There were a lot of changes, and it was hard to follow, especially with
methods and types that changed and were then removed.
This groups everything under a single entry, with a short summary of
the changes, followed by a list of per-PR changes.
The detailed list is reorganized to put the biggest changes first, like
the renaming, and a few entries were cleaned up or removed, because
they mention a method or type that is removed in another entry.
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr >
2025-04-04 15:00:54 +02:00
Kévin Commaille
dd094ea38e
doc(oauth): Update docs
...
Make sure they are up-to-date.
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr >
2025-04-04 15:00:54 +02:00
Kévin Commaille
b2cd81a992
test(sdk): Fix compilation error
...
Introduced by merging #4886 and #4887 around the same time.
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr >
2025-04-04 14:45:06 +02:00
Ivan Enderlin
d5ceb5f99a
refactor(sdk): Reduce the size of Error::CrossProcessLockStore.
...
This patch boxes the error in `Error::CrossProcessLockStore` to reduce
the size of this variant (from 24 bytes to 16 bytes).
2025-04-04 13:25:55 +02:00
Ivan Enderlin
956386a3ed
refactor(sdk): Reduce the size of Error::SendQueueWedgeError.
...
This patch boxes the error in `Error::SendQueueWedgeError` to reduce the
size of this variant (from 32 bytes to 16 bytes).
2025-04-04 13:25:55 +02:00
Ivan Enderlin
b2a4032432
refactor(sdk): Reduce the size of Error::EventCache.
...
This patch boxes the error in `Error::EventCache` to reduce the size of
this variant (from 32 bytes to 16 bytes).
2025-04-04 13:25:55 +02:00
Ivan Enderlin
38378f7bae
refactor(sdk): Reduce the size of Error::OAuth.
...
This patch boxes the error in `Error::OAuth` to reduce the size of this
variant (from 160 bytes to 16 bytes).
2025-04-04 13:25:55 +02:00
Ivan Enderlin
e12264bcb6
refactor(sdk): Reduce the size of Error::WrongRoomState.
...
This patch boxes the error in `Error::WrongRoomState` to reduce the
size of this variant (from 24 bytes to 16 bytes).
2025-04-04 13:25:55 +02:00
Ivan Enderlin
385df955c3
refactor(sdk): Reduce the size of Error::SlidingSync.
...
This patch boxes the error in `Error::SlidingSync` to reduce the size of
this variant (from 72 bytes to 16 bytes).
2025-04-04 13:25:55 +02:00
Ivan Enderlin
47a1db9e16
refactor(sdk): Reduce the size of Error::QrCodeScanError.
...
This patch boxes the error in `Error::QrCodeScanError` to reduce the
size of this variant (from 72 bytes to 16 bytes).
2025-04-04 13:25:55 +02:00
Ivan Enderlin
ed82f07d7d
refactor(sdk): Reduce the size of Error::EventCacheStore.
...
This patch boxes the error in `Error::EventCacheStore` to reduce the size of
this variant (from 32 bytes to 16 bytes).
2025-04-04 13:25:55 +02:00
Ivan Enderlin
4ddd1468c2
refactor(sdk): Reduce the size of Error::StateStore.
...
This patch boxes the error in `Error::StateStore` to reduce the size of
this variant (from 40 bytes to 16 bytes).
2025-04-04 13:25:55 +02:00
Ivan Enderlin
b274d36e11
refactor(sdk): Reduce the size of Error::MegolmError.
...
This patch boxes the error in `Error::MegolmError` to reduce the size of this
variant (from 72 bytes to 16 bytes).
2025-04-04 13:25:55 +02:00