Ivan Enderlin
aa75d02ae3
feat(sdk): SlidingSyncList::handle_response must be pub(self).
...
This method must be only visible to the current module, not from the
upper/super module.
Note: `pub(self)` is equivalent to no `pub` at all.
2023-03-22 11:06:21 +01:00
Ivan Enderlin
eefef9a81b
test(sdk): Move test to appropriate files.
2023-03-22 11:06:21 +01:00
Ivan Enderlin
15646ec1d6
test(sdk): Fix how TimelineEvent is constructed.
2023-03-22 11:06:21 +01:00
Ivan Enderlin
10380596cd
chore(sdk): Format a comment.
2023-03-22 11:06:21 +01:00
Ivan Enderlin
c4df1cb9aa
chore(sdk): Rename an argument.
2023-03-22 11:06:21 +01:00
Ivan Enderlin
c509b6c76a
test(sdk): Add tests for SlidingSyncList.set_range, add_range and reset_ranges.
2023-03-22 11:06:21 +01:00
Ivan Enderlin
9c2e2238ed
test(sdk): Add a test for SlidingSyncList::ranges.
2023-03-22 11:06:21 +01:00
Ivan Enderlin
2edb5d845e
feat(sdk): SlidingSyncList.ranges & co. takes a Into<UInt>.
...
In `SlidingSyncListBuilder`, the `ranges`, `set_range`, and `add_range`
methods do not take a `u32` but a `U: Into<UInt>`. That's great!
However, in `SlidingSyncList`, the same methods take a `u32`. It makes
the API inconsistent.
This patch fixes that.
2023-03-22 11:06:18 +01:00
Ivan Enderlin
147e5f8f03
fix(sdk): Rename SlidingSyncList.set_ranges to ranges.
...
This patch renames `SlidingSyncList.set_ranges` to `ranges` so that
it matches the same terminology of the `SlidingSyncListBuilder` with
`ranges`, `set_range`, `add_range` and `reset_ranges`.
Consistency is important here.
2023-03-22 10:59:23 +01:00
Ivan Enderlin
8e9cabcbf9
test(sdk): Add test for SlidingSyncList::new_builder.
2023-03-22 10:59:23 +01:00
Ivan Enderlin
42af266806
fix(sdk): Fix SlidingSyncList::new_builder.
...
The `SlidingSyncList::new_builder` method creates a new builder from a
`SlidingSyncList`. This method was missing some configurations, like
`full_sync_maximum_numbre_of_rooms_to_fetch`, `send_updates_for_items`,
`filters`, `ranges` and `timeline_limit`.
This patchs adds those missing configurations.
2023-03-22 10:59:23 +01:00
Ivan Enderlin
7a1fb0b368
fix(sdk): Remove useless fields on SlidingSyncListBuilder.
...
The `SlidingSyncListBuilder` struct has a `state` and a `rooms_list`
fields. Those fields are never updated and no setters or getters exist
to use them. There are just set with defaults, and passed to the final
`SlidingSyncList` type within the `build` method.
If a field is present in a builder type, it means they can be modified,
but it's not the case. So this patch removes them.
2023-03-22 10:59:17 +01:00
Ivan Enderlin
3f72b10831
test(sdk): Write a test case for FrozenSlidingSyncList when serialized.
2023-03-22 10:58:40 +01:00
Ivan Enderlin
6bd95057b6
test(sdk): Write a test case for RoomListEntry when serialized.
2023-03-22 10:58:40 +01:00
Ivan Enderlin
859317a0f6
test(sdk): Write test suites for SlidingSyncState and SlidingSyncMode.
2023-03-22 10:58:40 +01:00
Ivan Enderlin
ace3ff3754
test(sdk): Write test suites for RoomListEntry.
2023-03-22 10:58:40 +01:00
Ivan Enderlin
60b627c2ca
feat(sdk): Rename RoomListEntry.freeze to .freeze_by_ref.
2023-03-22 10:58:40 +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
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
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