Mauro
154f29e5a0
feat(sdk): implement and observe MSC4278 config value
...
This patch
- Updates Ruma to use the improved MediaPreviewConfig event type that
also supports a `Default` for the content type
- Implemented a way to observe the stable and unstable values of the
event and return the used one accordingly, if no one is present the
default will be used
- Set the value (will only use unstable type for now)
2025-05-19 12:35:50 +02:00
Jonas Platte
e3bcd4d5b2
chore: Upgrade dirs to 6.0 in examples
2025-05-19 09:23:02 +02:00
Kévin Commaille
36667c1298
chore: Get rid of cargo-deny errors due to new advisories
...
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr >
2025-05-14 15:42:46 +02:00
dependabot[bot]
3cd64ac03b
chore(deps): Bump tokio from 1.43.0 to 1.43.1
...
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 1.43.0 to 1.43.1.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.43.0...tokio-1.43.1 )
---
updated-dependencies:
- dependency-name: tokio
dependency-version: 1.43.1
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-05-13 14:58:30 +02:00
dependabot[bot]
7d992d1af8
chore(deps): Bump ring from 0.17.8 to 0.17.14
...
Bumps [ring](https://github.com/briansmith/ring ) from 0.17.8 to 0.17.14.
- [Changelog](https://github.com/briansmith/ring/blob/main/RELEASES.md )
- [Commits](https://github.com/briansmith/ring/commits )
---
updated-dependencies:
- dependency-name: ring
dependency-version: 0.17.14
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-05-13 14:37:12 +02:00
Benjamin Bouvier
5da2235973
refactor(timeline): use TimelineEventKind::AddItem for UTDs
2025-05-13 14:15:00 +02:00
Benjamin Bouvier
de66047eee
refactor(event cache): simplify Deduplicator so it only operates with the store impl
2025-05-13 10:17:21 +02:00
Ivan Enderlin
44a0745110
chore(base): Move the bitflags dependency in the workspace.
2025-05-12 17:15:43 +02:00
Mauro Romito
c023745dcf
crates: update Ruma to support MSC 4278
...
This will later be handled once the account data observation PR is ready
2025-05-09 14:41:17 +02:00
Johannes Marbach
1554e05d8a
refactor(send_queue): generalize SentRequestKey::Media and DependentQueuedRequestKind::UploadFileWithThumbnail to prepare for MSC4274 gallery uploads ( #4897 )
...
This was broken out of
https://github.com/matrix-org/matrix-rust-sdk/pull/4838 and is a
preliminary step towards implementing
[MSC4274](https://github.com/matrix-org/matrix-spec-proposals/pull/4274 ).
`SentRequestKey::Media` and
`DependentQueuedRequestKind::UploadFileWithThumbnail` are generalized to
allow chaining dependent media uploads and accumulating sent media
sources.
- [x] Public API changes documented in changelogs (optional)
---------
Signed-off-by: Johannes Marbach <n0-0ne+github@mailbox.org >
Co-authored-by: Benjamin Bouvier <benjamin@bouvier.cc >
2025-04-24 09:52:33 +00:00
Damir Jelić
bc50cae35f
feat(multiverse): Add support to join rooms you've been invited to
2025-04-16 11:35:57 +02:00
Ivan Enderlin
5d55bb4955
chore: Release matrix-sdk version 0.11.0
2025-04-11 10:51:30 +02:00
dependabot[bot]
bfbbe89989
chore(deps): Bump crossbeam-channel from 0.5.13 to 0.5.15
...
Bumps [crossbeam-channel](https://github.com/crossbeam-rs/crossbeam ) from 0.5.13 to 0.5.15.
- [Release notes](https://github.com/crossbeam-rs/crossbeam/releases )
- [Changelog](https://github.com/crossbeam-rs/crossbeam/blob/master/CHANGELOG.md )
- [Commits](https://github.com/crossbeam-rs/crossbeam/compare/crossbeam-channel-0.5.13...crossbeam-channel-0.5.15 )
---
updated-dependencies:
- dependency-name: crossbeam-channel
dependency-version: 0.5.15
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-04-10 16:52:10 +02:00
Damir Jelić
ab90c1b945
refactor(sdk): Migrate away from the backoff crate to the backon crate
...
Since backon also has WASM support, this should mean that we can get rid
of the WASM specific HTTP client implementation.
2025-04-10 11:58:06 +02:00
Damir Jelić
68e3cdebdd
chore: Bump the blake3 version
2025-04-09 16:37:40 +02:00
Damir Jelić
511cf78d51
chore: Bump the rusqlite version
2025-04-09 16:37:40 +02:00
Damir Jelić
f4eea708fa
chore: Update the ByteSize crate version we're using
2025-04-09 16:37:40 +02:00
Damir Jelić
28e475b1fc
chore(multiverse): Get rid of an unused dependency
2025-04-07 14:17:10 +02:00
Damir Jelić
71b6b213c4
refactor(multiverse): Move the details mode into a tab-based popout
2025-04-07 14:17:10 +02:00
Damir Jelić
fad63b9a64
feat(multiverse): Recovery support
2025-04-07 14:17:10 +02:00
Damir Jelić
774bff00a0
refactor(multiverse): Events view
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ć
238fbdbe82
refactor(multiverse): Use the Mutex from the common crate to avoid calling unwrap
2025-04-07 14:17:10 +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
dependabot[bot]
b4a8089b40
chore(deps): Bump openssl from 0.10.70 to 0.10.72
2025-04-04 23:28:09 +02:00
Ivan Enderlin
13ca27d66a
chore(cargo): Update eyeball and imbl.
...
This patch updates `eyeball`, `eyeball-im` and `eyeball-im-util` from
`main` branch to latest releases.
This patch also updates `imbl` to 5.0.
2025-04-04 10:09:12 +02:00
Benjamin Bouvier
f6e223edf6
refactor(timeline): bump as_variant and make more use of its pattern matching form
2025-03-27 10:42:22 +01:00
Ivan Enderlin
660d4e7ccb
feat(sqlite): Add StoreOpenConfig and open_with_config for all stores.
...
This patch adds a new `StoreOpenConfing` type to configure the store
when opening it and when creating the pool of connections to SQLite via
`deadpool_sqlite`.
This patch also adds a new `open_with_config` constructor on all
stores, namely `SqliteCryptoStore`, `SqliteEventCacheStore` and
`SqliteStateStore`.
2025-03-26 11:01:52 +01:00
Kévin Commaille
29f6606d99
refactor(examples): Rename oidc_cli to oauth_cli
...
And update the docs.
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr >
2025-03-24 09:32:05 +00:00
Kévin Commaille
f8abb85e9e
refactor(oidc_cli): Use LocalServerBuilder
...
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr >
2025-03-18 09:55:01 +01:00
Kévin Commaille
3a7b0e9404
refactor(oidc): Remove dependency on mas-oidc-client
...
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr >
2025-03-14 18:03:34 +01:00
Kévin Commaille
215853cf67
chore: Upgrade ruma
...
To pull in`GrantType::DeviceCode` and a fix for the generated `DeviceId`
length.
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr >
2025-03-12 13:41:40 +01:00
Benjamin Bouvier
01bb8093d0
feat(ffi): add a function to setup a lightweight tokio runtime
...
Creating many threads may use a bit of memory: on a machine with N
devices, exactly N*2 MB of memory may be consumed.
That might be a lot for a NSE process on iOS, which can only have up to
16 MB of RAM allocated for it. For this case, we introduce a new FFI
method `setup_lightweight_tokio_runtime` which will spawn at most 4
worker threads and 1 blocking thread. This should be sufficient for most
use cases.
2025-03-11 16:05:52 +01:00
dependabot[bot]
e7f85ba545
chore(deps): bump ring from 0.17.8 to 0.17.13
...
Bumps [ring](https://github.com/briansmith/ring ) from 0.17.8 to 0.17.13.
- [Changelog](https://github.com/briansmith/ring/blob/main/RELEASES.md )
- [Commits](https://github.com/briansmith/ring/commits )
---
updated-dependencies:
- dependency-name: ring
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-03-10 09:41:43 +02:00
Kévin Commaille
2506ba8364
refactor(oidc): Use oauth2 for token revocation
...
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr >
2025-03-07 12:50:58 +01:00
Damir Jelić
40de714e81
refactor(multiverse): Use clap to simplify the CLI argument parsing
2025-03-06 15:46:07 +01:00
Damir Jelić
27bde16843
refactor(multiverse): Simplify the terminal and panic hook setups
2025-03-06 15:46:07 +01:00
Damir Jelić
120970c4ea
chore(multiverse): Bump the deps
2025-03-06 15:46:07 +01:00
Damir Jelić
c1e28aa156
test(crypto): Add a snapshot test for the inbound group session pickle
2025-02-25 16:52:23 +01:00
Kévin Commaille
2eb2ae7959
refactor(oidc): Use the GET /auth_metadata Matrix endpoint ( #4673 )
...
This is the method to get the server metadata in the latest draft of
[MSC2965](https://github.com/matrix-org/matrix-spec-proposals/pull/2965 ).
We still keep the old behavior with `GET /auth_issuer` as fallback for
now because it has wider server support.
There are some pre-main commit cleanups to simplify the main commit.
This can be reviewed commit by commit.
The changes were tested with the oidc_cli example on beta.matrix.org.
Closes #4550 .
---------
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr >
2025-02-18 17:41:48 +01:00
Kévin Commaille
c6c7307d6e
Merge branch 'main' into qr-login-oauth2
2025-02-13 15:20:10 +01:00
Ivan Enderlin
8a7658745d
chore: Fallback to jplatte/eyeball instead of Hywan/eyeball's fork.
2025-02-04 19:43:38 +01:00
Ivan Enderlin
0a520e4f9f
task(ui): Apply the Skip higher-order stream for the Timeline.
...
This patch applies the `Skip` higher-order stream on the `Timeline`
subscriber. The method `TimelineController::subscribe_batched` is
renamed `subscribe_batched_and_limited` at the same time.
The `Skip` stream uses the `TimelineMetadata::subscriber_skip_count`
observable value as the `count_stream`. The initial count value is 0.
No test needs to be changed so far.
2025-02-04 19:43:38 +01:00
Damir Jelić
4c46e42201
chore: Release matrix-sdk version 0.10.0
2025-02-04 16:32:55 +01:00
Kévin Commaille
d5d9898fb4
feat: Upgrade Ruma to 0.12.1
...
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr >
2025-02-04 12:00:40 +01:00
Ivan Enderlin
47d08683a2
fix(security): Update OpenSSL.
...
See this note https://rustsec.org/advisories/RUSTSEC-2025-0004 .
This patch updates OpenSSL to 0.10.70.
2025-02-03 09:42:58 +01:00
Kévin Commaille
d7dc1c9b5b
refactor(auth-qrcode): Use oauth2 crate instead of openidconnect
...
The MSCs are now only based on OAuth 2.0, which is simpler than OpenID Connect.
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr >
2025-02-02 18:42:54 +01:00
Damir Jelić
57919f5480
chore: Bump most of our deps
2025-01-31 17:14:37 +01:00
Damir Jelić
06ad67f99c
docs(ui): Polish the documentation of the SyncService a bit
2025-01-28 12:48:55 +01:00