Kévin Commaille
3f1a596c8c
indexeddb: Return all user IDs in get_user_ids
...
It would only return joined and invited user IDs,
since those are the only ones that were stored.
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr >
2023-04-24 18:54:29 +02:00
Jonas Platte
e5f4bbdc47
Upgrade dependencies
2023-04-24 13:59:01 +02:00
Jonas Platte
d527dd37b1
Upgrade Ruma
2023-04-24 12:42:03 +02:00
Jonas Platte
24a903ccb0
Fix Cargo.lock
2023-04-24 11:17:05 +02:00
Jonas Platte
7e58e72671
Upgrade UniFFI
2023-04-20 18:24:47 +02:00
Jonas Platte
bb05ac7dac
ffi: Add basic tracing bindings
2023-04-20 11:43:45 +02:00
Jonas Platte
86930581a5
Upgrade Ruma
2023-04-18 13:14:33 +02:00
Damir Jelić
316b29c95f
Merge branch 'main' into valere/msc_2399
2023-04-13 10:59:05 +02:00
Damir Jelić
0f8da0b723
Test that to-device requests in the group session can get deserialized
2023-04-11 10:08:06 +02:00
Damir Jelić
81e2725b6f
Remove DirectWithheldCode
2023-04-04 13:30:29 +02:00
Ivan Enderlin
60d4ac14b7
Merge pull request #1725 from Hywan/feat-remove-jack-in
...
feat(labs): Remove `jack-in`
2023-04-01 13:27:20 +02:00
Jonas Platte
6878f52885
Upgrade UniFFI
2023-03-30 21:53:02 +02:00
Ivan Enderlin
ea5b4c98c1
feat(labs): Remove jack-in.
...
This was a fun ride, but nobody uses it, and we don't need it anymore.
Thanks for all the fishes.
2023-03-30 18:03:38 +02:00
Richard van der Hoff
f9881065c1
Add an API to notify apps when a megolm key is received
...
This is useful for applications which want to have another go at decryption
when some room keys arrive.
2023-03-30 12:29:39 +02:00
Damir Jelić
03aba95e1e
Switch the FFI bindings to use the SQLite cryptostore
2023-03-29 11:44:33 +02:00
Jonas Platte
cd33d8ca38
Always use RwLock and Mutex from tokio
...
… instead of async-lock, which we previously used on wasm.
2023-03-28 21:08:57 +02:00
Jonas Platte
9bfd88cec4
sdk: Always use tokio OnceCell
...
Tokio's sync module works on wasm as well.
2023-03-28 21:08:57 +02:00
dependabot[bot]
8b5de47acb
chore(deps): bump openssl from 0.10.45 to 0.10.48 ( #1706 )
...
Bumps [openssl](https://github.com/sfackler/rust-openssl ) from 0.10.45 to 0.10.48.
- [Release notes](https://github.com/sfackler/rust-openssl/releases )
- [Commits](https://github.com/sfackler/rust-openssl/compare/openssl-v0.10.45...openssl-v0.10.48 )
---
updated-dependencies:
- dependency-name: openssl
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-25 21:12:52 +01:00
Jonas Platte
72ae9dd885
Upgrade eyeball-im
2023-03-20 16:51:28 +01:00
Doug
b1074e400e
sdk: Add get_media_file function
2023-03-15 09:22:53 +00:00
Damir Jelić
eb2bf61236
Merge pull request #1657 from matrix-org/poljar/session-creator-info
...
Improve the docs of the inbound group session type
2023-03-14 17:33:24 +01:00
Damir Jelić
36b739b830
Improve the docs of the inbound group session type
2023-03-14 15:50:03 +01:00
Damir Jelić
18c33aefa1
Merge pull request #1633 from matrix-org/rav/fix_wait_if_user_pending
...
Fix races in `wait_if_user_pending`
2023-03-14 14:59:20 +01:00
Damir Jelić
9880619d81
Merge branch 'main' into rav/fix_wait_if_user_pending
2023-03-14 14:26:28 +01:00
Kévin Commaille
aebd5fe4eb
sdk: Fix timeline highlight test
...
Update Ruma to fix the server default push rules.
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr >
2023-03-14 14:02:01 +01:00
Mauro
7ab134233e
bindings: Set pusher from client + notification service stub
...
Co-authored-by: ismailgulek <ismailg@matrix.org >
2023-03-14 13:36:36 +01:00
Andy Uhnak
7e7c91699f
Generic key-value API
2023-03-14 10:27:11 +00:00
Jonas Platte
e9058f58be
Upgrade Ruma
2023-03-13 16:31:19 +01:00
Alfonso Grillo
786e9b5db9
Add createRoom UniFFI binding
2023-03-13 15:33:18 +01:00
Damir Jelić
5d6cf2d33a
Remove some clones when creating a /keys/query request
...
The part of code that converts a list of users to the actual
/keys/query request uses the chunks() method. This method operates on
the slice. Our list/vec of users gets dereferenced into a slice before
we create our chunks. The chunks can't take ownership of the data, which
in turn requires us to clone the user IDs for them to be put into the
request.
Itertools has a chunks() method which operates on an iterator which we
can utilize to remove, not only the clone, but also a collect call.
At the same time, let's make the conversion step a simple functional
mapping and document what's going on.
2023-03-13 14:17:12 +01:00
Richard van der Hoff
e1c6ac9787
Merge branch 'main' into rav/fix_wait_if_user_pending
2023-03-13 11:52:11 +00:00
Jonas Platte
cc35ee72b8
Upgrade eyeball to 0.4.0
2023-03-11 13:13:50 +01:00
Jonas Platte
b148ea2fb1
Bump locked version of clap
...
To work around this clippy bug:
https://github.com/rust-lang/rust-clippy/issues/10421
2023-03-11 13:13:50 +01:00
Richard van der Hoff
16871d1dcd
Rewrite wait_if_user_pending to fix races
2023-03-09 13:11:34 +00:00
Ivan Enderlin
c517f38ec8
sliding-sync: process receipt extension response
...
sliding-sync: process receipt extension response
2023-03-08 16:29:56 +01:00
Kegan Dougal
48bf20fcca
Add integration test for receipts in sliding sync
2023-03-08 12:53:23 +00:00
Mauro
be6c7c8b4c
Add user avatar URL caching
2023-03-08 13:30:46 +01:00
Jonas Platte
7af2bea2fc
Upgrade UniFFI
2023-03-08 11:12:11 +01:00
Ivan Enderlin
46d71acb44
chore: Update ruma to a specific revision.
2023-03-08 08:56:38 +01:00
Ivan Enderlin
9f0563eb95
feat(sdk): SlidingSync::stream can match expected responses.
...
This patch adds a new feature.
Each call to `SlidingSync::stream` generates a unique `stream_id`. This
`stream_id` is passed to requests as a `txn_id` field. Returned responses must
hold the same `txn_id`, otherwise it means `stream` has received unexpected
responses from another `stream` or something else.
So far, when the `txn_id` field of the response and the `stream_id` don't
match, a log with the `ERROR` level is raised. Should we do more, like ignoring
the response entirely? Not sure yet.
2023-03-08 08:56:32 +01:00
Kévin Commaille
d77efd7327
state-store: Replace methods to get and set key-value data
...
Avoid to make the API bigger when we want to add new key-value data
in the store.
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr >
2023-03-07 13:52:37 +01:00
Kévin Commaille
e09ec389d1
indexeddb: Fix migration of state store
...
The IndexedDB API expects an unsigned integer for the version.
The web-sys bindings expose it as a f64 so versions like 1.1 and 1.2
were used. The were converted back to uint in JS which means the version
was always 1.0 and no real upgrade was processed
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr >
2023-03-07 10:04:09 +01:00
Richard van der Hoff
79ee4b59ee
matrix-sdk-crypto: enable tracing for in-crate tests
2023-03-06 19:25:47 +01:00
Kévin Commaille
1684dbe0a1
feat(examples): Add example to persist a session
...
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr >
2023-02-28 09:20:53 +01:00
Doug
9531dc195a
fix(bindings): Fix double quotes when replying to a reply.
2023-02-27 18:23:49 +01:00
Jonas Platte
d06e8ccfc5
refactor: Upgrade eyeball and use SharedObservable
...
… but not in sliding sync yet, where some planned refactorings might
conflict with this.
2023-02-27 13:29:28 +01:00
Anderas
f0986643ce
chore(crypto): Log Olm session identifiers
...
Co-authored-by: Damir Jelić <poljar@termina.org.uk >
2023-02-27 10:59:30 +01:00
Jonas Platte
d0c8ec7a22
refactor: Replace remaining usage of futures-signal with eyeball(-im)
2023-02-23 15:08:41 +01:00
Jonas Platte
6c92bf8745
refactor(sdk): Remove unused dependency
2023-02-23 11:47:51 +01:00
Jonas Platte
ba6fc794b0
refactor(base): Replace futures-signals with eyeball
2023-02-23 11:47:51 +01:00