Commit Graph

3180 Commits

Author SHA1 Message Date
Ivan Enderlin
e9d37d7c4e docs(crypto): Add missing docs. 2022-05-31 08:36:37 +02:00
Ivan Enderlin
8b94aed27f fix(crypto): Use txn_id for transaction_id. 2022-05-31 08:36:37 +02:00
Ivan Enderlin
dc5b15e799 fix(crypto): OutgoingRequest::ToDeviceRequest was not correctly mapped. 2022-05-31 08:36:37 +02:00
Ivan Enderlin
30e9189f7b fix(crypto): Use JavaScript naming convention for OlmMachine.invalidate_group_session. 2022-05-31 08:36:37 +02:00
Ivan Enderlin
b6a5d4962b Merge branch 'main' into feat-crypto-wasm 2022-05-31 08:36:30 +02:00
Ivan Enderlin
ee713f928f feat(crypto): Implement OlmMachine.encrypt and .invalidate_group_session. 2022-05-31 08:35:09 +02:00
Ivan Enderlin
444ff9936b feat(crypto): Implement RoomId. 2022-05-31 08:35:09 +02:00
Ivan Enderlin
2451815226 feat(crypto): Implement *PublicKey.to_base64 and .length. 2022-05-31 08:35:09 +02:00
Ivan Enderlin
86c6e601bd chore(crypto): Refactor the code with TryFrom on a tuple. 2022-05-31 08:35:09 +02:00
Ivan Enderlin
9f159ff5a4 feat(crypto): Implement OlmMachine.mark_request_as_sent.
To implement this method, a new `responses::OwnedResponse`
intermediate type was needed. In addition to that, the `http` crate is
now required when the `js` feature is enabled.
2022-05-31 08:35:09 +02:00
Ivan Enderlin
056f34883f feat(crypto): Implement OlmMachine.trackedUsers. 2022-05-31 08:35:09 +02:00
Ivan Enderlin
2d15f758da feat(crypto): Use JavaScript naming style for methods. 2022-05-31 08:35:09 +02:00
Ivan Enderlin
acd5de3cf3 feat(crypto): Implement ServerName, and add UserId.serverName. 2022-05-31 08:35:09 +02:00
Ivan Enderlin
f0bb35a96c feat(crypto): Add changed and left to the constructor of DeviceLists. 2022-05-31 08:35:09 +02:00
Ivan Enderlin
1d38e54739 feat(crypto): Return a JsError rather than a String. 2022-05-31 08:35:09 +02:00
Ivan Enderlin
08665dcd1c feat(crypto): Implement our own future_to_promise helper to simplify code.
`wasm_bindgen_future::future_to_promise` expects a `Future<Output =
Result<JsValue, JsValue>>`. We reimplement this function by expecting
a `Future<Output = Result<T, anyhow::Error>>` where `T:
Into<JsValue>`. That way, we apply the type conversions to `JsValue`
inside this helper rather than in the call site. Additionally, all
errors are managed automatically without having to deal with `JsError`
or `JsValue`. It makes the code simpler to read and easier to write
from my point of view.
2022-05-31 08:35:09 +02:00
Ivan Enderlin
569adb7ceb feat(crypto) Implement OlmMachine.identity_keys. 2022-05-31 08:35:09 +02:00
Ivan Enderlin
fd4dff79d4 feat(crypto) Implement OlmMachine.user_id, .device_id and .display_name. 2022-05-31 08:35:09 +02:00
Ivan Enderlin
fdb9fe21c6 feat(crypto) Remove existing unwrap code. 2022-05-31 08:35:09 +02:00
Ivan Enderlin
7e5eec82c5 feat(crypto) Implement OlmMachine.outgoing_requests. 2022-05-31 08:35:09 +02:00
Ivan Enderlin
901715bcf3 chore(crypto) Generate a smaller Wasm module. 2022-05-31 08:35:09 +02:00
Ivan Enderlin
3aa46fa746 feat(crypto) Implement OlmMachine.receive_sync_changes & friends. 2022-05-31 08:35:09 +02:00
Ivan Enderlin
3318789a8b feat(crypto) Implement UserId, DeviceId and OlmMachine in Wasm for JS. 2022-05-31 08:35:09 +02:00
Ivan Enderlin
0fe0910fea feat(crypto) Reduce Wasm binary size by enabling LTO. 2022-05-31 08:35:09 +02:00
Benjamin Kampmann
76144de881 Fix(SDK): add missing import for experimental-timeline feature
Merge pull request #671 from jsparber/fix_import
2022-05-13 10:33:03 +02:00
Julian Sparber
911b5415b9 ci: Use experimental-timeline feature 2022-05-12 13:59:18 +02:00
Julian Sparber
c3fc6ff58f Fix missing import for experimental-timeline feature 2022-05-12 12:38:58 +02:00
Benjamin Kampmann
4c84f252d2 Merge pull request #667 from matrix-org/ben-releasing-base-0.5.1
Release matrix-sdk-base 0.5.1
2022-05-11 19:23:16 +02:00
Benjamin Kampmann
70c0626882 chore: tag base 0.5.1 matrix-sdk-base-0.5.1 2022-05-11 19:01:12 +02:00
Benjamin Kampmann
5570181bf8 fix(sdk): Fix regression with push rules being applied to the own user_id only instead of all but the own user_id
Merge pull request #664 from JCWasmx86/ignore_notification
2022-05-11 18:52:55 +02:00
Benjamin Kampmann
7088ff89b5 Merge pull request #665 from matrix-org/ben-releasing-0.5.0
Releasing 0.5.0
2022-05-11 18:50:34 +02:00
Benjamin Kampmann
2561ed1df9 docs: Adding release notes for 0.5.0 matrix-sdk-qrcode-0.3.0 matrix-sdk-sled-0.1.0 matrix-sdk-test-macros-0.2.0 matrix-sdk-test-0.5.0 matrix-sdk-common-0.5.0 matrix-sdk-store-encryption-0.1.0 matrix-sdk-crypto-0.5.0 matrix-sdk-indexeddb-0.1.0 matrix-sdk-0.5.0 matrix-sdk-base-0.5.0 2022-05-11 18:16:44 +02:00
JCWasmx86
3f36528a98 fix(sdk): Fix regression 2022-05-11 18:15:33 +02:00
Benjamin Kampmann
34da27222f chore: Preparing all the small things for release
Merge pull request #657 from gnunicorn/ben-preping-for-release
2022-05-11 18:10:11 +02:00
Benjamin Kampmann
aa69bda05b feat(matrix-sdk): Expose method to decrypt room events
Merge pull request #614 from jsparber/fix_decrypt_timeline
2022-05-11 17:34:19 +02:00
Benjamin Kampmann
8bdd0ffc5d docs: Update crates/matrix-sdk-crypto-ffi/README.md
Co-authored-by: Jonas Platte <jplatte+git@posteo.de>
2022-05-11 17:32:22 +02:00
Benjamin Kampmann
c21408934c chore: Mark crypto-ffi as non-publish 2022-05-11 17:31:19 +02:00
Benjamin Kampmann
daa0768a04 Apply suggestions from code review
Co-authored-by: Jonas Platte <jplatte+git@posteo.de>
2022-05-11 17:30:12 +02:00
Benjamin Kampmann
706ea248eb Merge pull request #660 from gnunicorn/ben-encrypt-indexeddb-cryptostore-keys
fix(indexeddb): encrypt crypto-store key
2022-05-11 17:26:41 +02:00
Benjamin Kampmann
d120d9b70f style(indexeddb): fix import order 2022-05-11 17:09:29 +02:00
Benjamin Kampmann
ef2754736a docs(sled): Document doubts on sled in the readme 2022-05-11 17:07:07 +02:00
Jonas Platte
bc78095611 fix(sdk): Don't send notifications for your own user 2022-05-11 17:02:30 +02:00
Benjamin Kampmann
45ea472c83 Merge remote-tracking branch 'origin/main' into ben-preping-for-release 2022-05-11 16:57:40 +02:00
Benjamin Kampmann
583810726d style(indexeddb): Minor style fixes for fmt and clippy 2022-05-11 16:56:18 +02:00
JCWasmx86
5fef975ef2 fix(sdk): Don't send notifications for your own user 2022-05-11 16:52:24 +02:00
Benjamin Kampmann
86d2a74c25 Chore: adding issue tracker link to fixme 2022-05-11 15:32:09 +02:00
Benjamin Kampmann
aa5e28e58f style(indexeddb): &self.store_cipher instead of Some(ref cipher) 2022-05-11 15:27:28 +02:00
Benjamin Kampmann
0080a74d3b fix(indexeddb): temporarily disable tests 2022-05-11 15:24:56 +02:00
Benjamin Kampmann
44c5244b9a style: fixing cargo format 2022-05-11 13:09:07 +02:00
Benjamin Kampmann
339d701477 fix(indexeddb): Encrypt key with store-cipher 2022-05-11 13:04:15 +02:00