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
Stefan Ceriu
2657eb7866
feat(ui): expose a method for checking whether a message contains only emojis and should be boosted (use a bigger font size) ( #4577 )
...
- supports only text room message types
- enumerates through their body's grapheme clusters and check that every
single one of them is an emoji
- part of the `LazyTimelineItemProvider` so that it can be opt in
2025-01-27 14:00:01 +00:00
Kevin Boos
756dec264d
Upgrade imbl, eyeball-im, eyeball-im-util to fix bounds check
...
A bounds check was recently relaxed in `imbl`'s `Focus::narrow()`
function: https://github.com/jneem/imbl/pull/89 ,
which fixed a bug that would cause a panic if the downstream user
of `matrix-sdk-ui` attempted to narrow a focus of Timeline items
using a range that included the last item in the Timeline.
Example: https://github.com/project-robius/robrix/issues/330
This fix has been incorporated in `eyeball-im` and `eyeball-im-util`
and has been tested by me to no longer trigger upon the aforementioned
conditions.
2025-01-25 02:13:22 -05:00
Hubert Chathi
e826c54a42
Use the dehydrated device format implemented by vodozemac ( #4421 )
...
Signed-off-by: Hubert Chathi <hubertc@matrix.org >
2025-01-22 09:38:48 +01:00
Kévin Commaille
9ae658c1b9
feat(sdk): Enable HTTP/2 support
...
It became an optional default feature in reqwest 0.12, and we disable
the default features,
so I don't think it was meant to be disabled when the crate was
upgraded.
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr >
2025-01-22 09:08:00 +01:00
Ivan Enderlin
c82e469fc3
chore(cargo): Update Ruma to include https://github.com/ruma/ruma/pull/1995 .
2025-01-20 15:02:53 +01:00
Richard van der Hoff
5fadde5a6d
test: implement test user data builder type
...
... and use it for some simple data
2025-01-15 10:42:21 +00:00
Richard van der Hoff
fedf7d214f
test: add some snapshot tests before we change anything
2025-01-15 10:42:21 +00:00
Jorge Martín
d6a74d389d
feat(room): Add fn RoomPrivacySettings::publish_room_alias_in_room_directory.
...
This also needs some new mocks for resolving room aliases.
2025-01-13 11:29:10 +01:00
Kévin Commaille
cb72d4375f
chore: Upgrade Ruma
...
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr >
2025-01-10 11:31:56 +01:00