Jonas Platte
82f4e57a2c
feat(sled): Print a clear error message when attempting to build on wasm
2022-08-03 14:48:45 +02:00
Jonas Platte
9714ce9edf
refactor(sdk): Check permissible feature configuration in build script
...
… instead of through `compile_error!` invocations. This helps avoid
unhelpful errors from the unsupported feature configuration by aborting
compilation earlier.
2022-08-03 14:48:45 +02:00
Kévin Commaille
9064e7b02d
feat(sdk): Add support for refresh tokens
2022-08-03 10:42:28 +02:00
Damir Jelić
ae261c2091
refactor(crypto): Refactor the key sharing tests a bit
2022-08-02 16:48:05 +02:00
Damir Jelić
968792ea00
refactor(crypto): Split out the forwarded room key accepting method
2022-08-02 16:48:05 +02:00
Benjamin Kampmann
42c88e840f
Merge pull request #905 from gnunicorn/ben-fix-integration-test-coverage
...
ci: add backend server for integration test with tarpaulin
2022-08-02 16:14:26 +02:00
Benjamin Kampmann
38a71972e5
ci: add backend server for integration test with tarpaulin
2022-08-02 15:42:45 +02:00
Jonas Platte
9fca639f9b
feat(sdk): Add room::Common::add_event_handler
2022-08-02 13:38:30 +02:00
Benjamin Kampmann
6cb87c64b5
Merge pull request #855 from gnunicorn/gnunicorn/issue833
...
Integration tests against an actual synapse server
2022-08-02 12:22:48 +02:00
Benjamin Kampmann
a5875ff75d
ci: update codecov config to exclude all testing crates
2022-08-02 10:59:18 +02:00
Benjamin Kampmann
9bb02f2419
fix: fix path to testing crate
2022-08-02 10:58:53 +02:00
Benjamin Kampmann
65be06ebad
Merge remote-tracking branch 'origin/main' into gnunicorn/issue833
2022-08-02 10:32:09 +02:00
Damir Jelić
154538c4c9
fix(crypto): Make the secret receiving logic more obvious.
...
This patch ensures that the received secret has been sent by one of our
verified devices. We already ensure so for the secrets we import, since
we check that the cross signing keys match the public keys of our own
user idenity.
No other secrets get imported by this method but it could quite easily
become an issue if we start accepting more secret types.
2022-08-02 09:35:38 +02:00
Damir Jelić
f23c16cf88
refactor(crypto): Split out the methods to receive a secret
2022-08-02 09:35:38 +02:00
Jonas Platte
165973121c
fix(sdk): Make remove_event_handler work with room-specific handlers
...
As part of that, store only the ID, not the whole key in
EventHandlerWrapper, because the key is getting bigger with room_id.
2022-08-01 23:57:00 +02:00
Jonas Platte
31903d3cbc
chore(sdk): Simplify remove_event_handler test
2022-08-01 23:55:44 +02:00
Jonas Platte
108f299e92
refactor(sdk): Inline handle_sync_events_wrapped_with into all callers
...
It was too generic to be readable.
2022-08-01 23:55:44 +02:00
Jonas Platte
eb78815be5
refactor(sdk): Create non-generic fn call_event_handlers
...
Extracted out of handle_sync_events_wrapped_with.
2022-08-01 23:55:44 +02:00
Jonas Platte
0716f6afaa
feat(sdk): Add Client::add_room_event_handler
2022-08-01 23:55:44 +02:00
Jonas Platte
78169d516e
refactor(sdk): Avoid unnecessary double map lookup
2022-08-01 23:55:44 +02:00
Jonas Platte
061fe104a9
chore(sdk): Move EventHandler{Fut,Fn} into event_handler module
2022-08-01 23:55:43 +02:00
Benjamin Kampmann
f91bdb28ba
Merge pull request #897 from gnunicorn/ben-fix-documentation-generation
...
Fix documentation generation
2022-08-01 22:37:21 +02:00
Benjamin Kampmann
14429af511
Update .github/workflows/documentation.yml
...
Co-authored-by: Jonas Platte <jplatte+git@posteo.de >
2022-08-01 22:19:46 +02:00
Benjamin Kampmann
1e6e00b0c0
ci(integration-testing): split integration test off from regular tests
2022-08-01 18:54:33 +02:00
docweirdo
744bd8d0d2
feat(common): Add a generically usable timeout function
2022-08-01 18:23:30 +02:00
Benjamin Kampmann
06ad079099
Merge pull request #895 from matrix-org/ben-add-editoconfig
...
build: Adding .editorconfig
2022-08-01 15:23:58 +02:00
Benjamin Kampmann
7dfadd1848
ci(integration-testing): split integration test off from regular tests
2022-08-01 15:20:13 +02:00
Benjamin Kampmann
5089c1a7e9
ci(docs): force npm generated bindings if existing
2022-08-01 14:56:26 +02:00
Benjamin Kampmann
c15a4bcdd4
build: Adding .editorconfig
2022-08-01 14:33:05 +02:00
Benjamin Kampmann
729836cf70
Merge pull request #894 from gnunicorn/ben-add-js-docs
...
ci(js) add npm docs of bindings to pages
2022-08-01 13:35:17 +02:00
Benjamin Kampmann
2d21c30639
Merge remote-tracking branch 'origin/main' into gnunicorn/issue833
2022-08-01 13:28:28 +02:00
Benjamin Kampmann
3842426788
ci: Remove unneeded github action params
2022-08-01 13:27:00 +02:00
Benjamin Kampmann
c27016b2e7
testing: fix review grumbles
2022-08-01 13:01:50 +02:00
Benjamin Kampmann
d0f58d0879
ci(js) add npm docs of bindings to pages
2022-08-01 12:17:36 +02:00
Kévin Commaille
4cdc91844e
chore(ci): Fix new clippy warnings
2022-07-30 12:58:18 +02:00
Jonas Platte
fe5d8fb40e
refactor: Deprecate ClientBuilder::{crypto_store, state_store}
2022-07-29 17:22:12 +02:00
Jonas Platte
ffb4c6d6ef
docs: Use new ClientBuilder methods in examples
2022-07-29 17:22:12 +02:00
Jonas Platte
93c4c5d128
feat(sdk): Add ClientBuilder::indexeddb_store
2022-07-29 17:22:12 +02:00
Jonas Platte
ec3a6e4b15
feat(sdk): Add ClientBuilder::sled_store
2022-07-29 17:22:12 +02:00
Jonas Platte
ecbcf734b9
docs(sled): Clean up make_store_config description
2022-07-29 17:22:12 +02:00
Jonas Platte
75f08aed69
docs(sdk): Fix outdated description of ClientBuilder::store_config
2022-07-29 17:22:12 +02:00
Jonas Platte
255955555d
refactor(sdk): Add back register_event_handler[_context] as deprecated methods
...
… using their original signatures so upgrading matrix-sdk is easier.
2022-07-29 14:39:28 +02:00
Jonas Platte
27b858308c
refactor(sdk)!: Rename {register => add}_event_handler[_context]
...
It's shorter and better fits with the new remove_event_handler method.
2022-07-29 14:39:28 +02:00
Jonas Platte
a21ac5d6e4
Disable debug-info for the dev profile
2022-07-29 11:28:47 +02:00
Damir Jelić
4db041ce9a
docs(crypto): Improve the wording on the recipient collection method
...
Co-authored-by: Jonas Platte <jplatte@matrix.org >
2022-07-29 10:20:36 +02:00
Damir Jelić
c194e08942
fix(crypto): Rotate the outbound group session if the algorithm changes
2022-07-29 10:20:36 +02:00
Damir Jelić
713e96d3a8
fix(crypto): Store intermediate changes to the outbound group session
...
This fixes a bug where we would lose already generated to-device
requests carrying an m.room_key when the client gets restarted.
This only happens if the request was generated after the initial
share of the room key. Such requests get generated if a new device
or member join the group.
2022-07-29 10:01:58 +02:00
Jonas Platte
b36f79a1bb
doc: Make rustfmt format code blocks in documentation
2022-07-28 20:06:12 +02:00
Jonas Platte
504464c1e8
chore: Remove edition from .rustfmt.toml
...
It will be picked up from Cargo.toml.
2022-07-28 20:06:12 +02:00
Doug
b884c5baae
chore(bindings/ffi): Print each step when building XCFramework.
2022-07-28 13:37:02 +02:00