Damir Jelić
cf17a05ecc
Restructure the withheld code types
2023-03-29 10:45:26 +02:00
Damir Jelić
d5fba19655
Don't allow the no_olm withheld code sent flag to be reset
2023-03-28 14:31:55 +02:00
Damir Jelić
0d3fd31893
Clean up the withheld code types
2023-03-27 09:21:48 +02:00
Damir Jelić
b2a35fc9cf
Merge branch 'main' into valere/msc_2399
2023-03-21 16:41:55 +01:00
Damir Jelić
900a4f848c
Don't log verification requests as sent if the request id doesn't match
2023-03-21 15:57:16 +01:00
Damir Jelić
c4d73c9901
fixup! Don't send m.no_olm withheld codes out if another session is doing so
2023-03-21 15:56:58 +01:00
Damir Jelić
eb9dd8fb0d
Don't send m.no_olm withheld codes out if another session is doing so
...
The `m.no_olm` withheld code is supposed to be sent out only once for a
given device.
This patch prevents double sending of m.no_olm withheld code by adding
a test that ensures only one group session will send it out.
Previously, the logic for sharing group sessions was mostly correct, but
an edge case was forgotten where two group sessions attempted to share
the withheld code concurrently.
Although there's still a possibility for multiple m.no_olm withheld codes
to be sent out. This may happen during the propagation of the flag
remembering the fact that the `m.no_olm` code has been sent from the
OutboundGroupSession to Device. This scenario is likely unrealistic and
the consequences of sending things twice aren't problematic.
2023-03-21 15:45:32 +01:00
Jonas Platte
a134cc378d
Sort sliding-sync-integration-test dependencies
2023-03-21 13:31:58 +01:00
Jonas Platte
a32fce6cdf
Make all sliding-sync-integration-test dependencies dev-dependencies
2023-03-21 13:31:58 +01:00
Jonas Platte
9ee2d04a41
Feature-gate everything in sliding-sync-integration-test
2023-03-21 12:24:14 +01:00
Mauro
1ce1c5636e
Add support for (un)ignoring users
2023-03-21 12:23:17 +01:00
Damir Jelić
8652cdf752
Test the VerificationState migration
2023-03-21 12:02:31 +01:00
Damir Jelić
32e2ea0288
Allow the old VerificationState enum to be deserialized into the new one
2023-03-21 12:02:31 +01:00
Damir Jelić
7263914f67
Remove the Apple specific auth service tests
...
These tests are doing real network requests towards hosts that are not
under our control.
2023-03-21 12:00:43 +01:00
Florian Renaud
76763a80fe
ffi: Add binding for get_dm_room
matrix-sdk-crypto-ffi-0.3.1
2023-03-20 16:30:25 +00:00
Jonas Platte
72ae9dd885
Upgrade eyeball-im
2023-03-20 16:51:28 +01:00
Jonas Platte
816e722807
ffi: Inline uniffi_api modules
...
include_scaffolding! is expected to be used at the crate root now, and
clippy seems happy with the generated code right now.
2023-03-20 15:42:38 +01:00
Jonas Platte
1a1fe97d00
Use Rust conventions for variable names in UDL
2023-03-20 15:42:38 +01:00
Jonas Platte
16687f24f9
sdk: Fix documentation of create_room
2023-03-20 13:56:43 +01:00
Jonas Platte
ea41076c82
sdk: Rename create_dm_room to create_dm and make it public
2023-03-20 13:56:43 +01:00
Jonas Platte
130dc58a5d
Remove redundant cfg attributes
...
The whole encryption module is only enabled with e2e-encryption.
2023-03-20 13:56:43 +01:00
Jonas Platte
9d6e192b9f
sdk: Move create_dm_room out of encryption module
...
Creating DM rooms makes sense for non-encryption-capable client as well.
2023-03-20 13:56:43 +01:00
Jonas Platte
82d1d64f85
sdk: Simplify create_dm_room
...
It doesn't need to call mark_as_dm itself as create_room will do that.
2023-03-20 13:56:43 +01:00
Jonas Platte
39a4dc911f
Remove event contents from (Sync)TimelineEvent Debug impls
2023-03-20 13:21:41 +01:00
Alfonso Grillo
a7ed8e0b45
Update account_data when creating a new dm room
2023-03-20 12:08:21 +01:00
Ivan Enderlin
e64ab6cf9c
Merge pull request #1677 from matrix-org/rav/update-js-bindings-prefix
...
matrix-sdk-crypto-js: drop `v` from release tags
2023-03-20 09:23:29 +01:00
Damir Jelić
43d883da9c
Refactor the room key sharing logic
2023-03-16 19:40:30 +01:00
Richard van der Hoff
42dce635de
matrix-sdk-crypto-js: drop v from release tags
...
Currently, the tags used for releases of this binding have the format:
"matrix-sdk-crypto-js-v0.1.0-alpha.5". This is inconsistent with tags used for
other parts of the project, which omit the `v` prefix.
2023-03-16 17:49:52 +00:00
Richard van der Hoff
7794b230e1
Merge pull request #1675 from matrix-org/release-matrix-sdk-crypto-js-v0.1.0-alpha.5
...
matrix-sdk-crypto-js: prepare v0.1.0-alpha.5
2023-03-16 17:38:33 +00:00
Ivan Enderlin
2d56f550aa
fix(sdk): Fix, test, and clean up SlidingSyncListRequestGenerator
...
fix(sdk): Fix, test, and clean up `SlidingSyncListRequestGenerator`
2023-03-16 17:04:05 +01:00
Ivan Enderlin
b39a224be8
doc(sdk): Use the Rust range notation to avoid ambiguity.
2023-03-16 17:03:25 +01:00
Richard van der Hoff
e6bf74b7db
matrix-sdk-crypto-js v0.1.0-alpha.5
Release `crypto-js` / Publish 🕸 [m]-crypto-js (push) Failing after 41s
matrix-sdk-crypto-js-v0.1.0-alpha.5
2023-03-16 13:47:55 +00:00
Ivan Enderlin
5f06dc8229
doc(sdk): Fix a typo.
2023-03-16 11:53:01 +01:00
Kévin Commaille
46d8d26b71
sdk: Fix a typo
...
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr >
2023-03-16 11:40:47 +01:00
Kévin Commaille
e23be44345
sdk: Store OIDC issuer as a String rather than a Url
...
The url crate normalizes the string, but during OIDC verification steps,
the issuer verification must be made against the exact string that was
provided.
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr >
2023-03-16 11:40:47 +01:00
Ivan Enderlin
57fb659b86
Merge pull request #1666 from zecakeh/indexeddb-crypto-version
...
indexeddb: Use u32 to represent version of crypto store
2023-03-16 11:12:27 +01:00
Ivan Enderlin
1933fe7a8f
doc(sdk): Fix a typo.
2023-03-16 11:04:18 +01:00
Ivan Enderlin
6a6d94a065
Re-expose the vodozemac and matrix-sdk-crypto versions in the bindings
...
Re-expose the vodozemac and matrix-sdk-crypto versions in the bindings
2023-03-16 10:56:51 +01:00
Ivan Enderlin
ccfb66c576
chore(crypto-nodejs): Fix a lint.
2023-03-16 10:39:43 +01:00
Ivan Enderlin
c2d3afffff
feat(crypto-nodejs): Make Versions a class, not a JS object.
2023-03-16 10:33:41 +01:00
Ivan Enderlin
e1f6fd8a1e
feat(ffi): Create the version and vodozemac_version functions.
2023-03-16 09:53:39 +01:00
Damir Jelić
2f377d536a
fixup! Re-expose the vodozemac and matrix-sdk-crypto versions in the bindings
2023-03-16 09:53:39 +01:00
Damir Jelić
26789f22b0
fixup! Re-expose the vodozemac and matrix-sdk-crypto versions in the bindings
2023-03-16 09:53:39 +01:00
Damir Jelić
3aa1c30f5c
Re-expose the vodozemac and matrix-sdk-crypto versions in the bindings
2023-03-16 09:53:37 +01:00
Ivan Enderlin
5e23bd09bc
feat(ci): aarch64-apple-ios should work on rustc stable.
2023-03-16 09:01:14 +01:00
Ivan Enderlin
c8bad4b86e
doc(sdk): Fix a typo.
2023-03-16 08:55:25 +01:00
Ivan Enderlin
07c366983d
doc(sdk): Fix a typo.
2023-03-16 08:24:05 +01:00
Ivan Enderlin
51abedda59
feat(ffi): Update SlidingStateState variants.
2023-03-16 08:21:11 +01:00
Ivan Enderlin
9d5a1fda3c
doc(sdk): Fix typos or improve.
2023-03-16 08:11:45 +01:00
Damir Jelić
61ea15eb39
Merge branch 'main' into valere/msc_2399
2023-03-15 19:31:04 +01:00