Commit Graph

13223 Commits

Author SHA1 Message Date
Benjamin Kampmann 4da7d31770 fixing unnecessary lifetimes 2022-04-19 16:22:25 +02:00
Benjamin Kampmann cdab735ce5 Apply suggestions from code review
Co-authored-by: Jonas Platte <jplatte@element.io>
2022-04-19 16:19:30 +02:00
Benjamin Kampmann e989b9aff7 merge sledstore's EncodeKey and SecureEncodeKey into one 2022-04-19 16:01:18 +02:00
Damir Jelić a8466f5069 refactor(crypto): Use the ruma time types for group sessions as well 2022-04-19 14:07:44 +02:00
Damir Jelić 95a3fe136d refactor(crypto): Use the ruma time types for the Session timestamps 2022-04-19 14:03:31 +02:00
Benjamin Kampmann 88d1aa615c remove unnecessary reference making 2022-04-19 12:42:39 +02:00
Benjamin Kampmann ac8500759c newline 2022-04-19 12:27:11 +02:00
Benjamin Kampmann 07f01eb985 typos 2022-04-19 12:26:27 +02:00
Benjamin Kampmann 953d759238 sort and typo 2022-04-19 12:21:26 +02:00
Benjamin Kampmann 9d09401ede .into instead of ::from 2022-04-19 12:20:41 +02:00
Benjamin Kampmann 872f32a7e0 sorting line order 2022-04-19 12:08:26 +02:00
Benjamin Kampmann 05b3077a7a fixing lints again 2022-04-19 11:00:13 +02:00
Benjamin Kampmann 8fdd8648c7 Merge remote-tracking branch 'origin/main' into ben-remove-store-key 2022-04-19 10:41:40 +02:00
Benjamin Kampmann 4e8383ea4f fixing clippy lints 2022-04-19 09:26:28 +02:00
Benjamin Kampmann 80791860fe fixing style and typos 2022-04-19 09:23:29 +02:00
Benjamin Kampmann 9698a50ad8 fixing timeline for encrypted indexeddb store 2022-04-13 15:52:57 +02:00
Benjamin Kampmann a390c3b40b more explicit naming 2022-04-13 15:52:10 +02:00
Benjamin Kampmann 70a5517c5c make room timeline test more debuggable 2022-04-13 15:23:50 +02:00
Benjamin Kampmann 262bee51b1 also implement room timeline in encrypted fashion on sled store 2022-04-13 15:23:14 +02:00
Benjamin Kampmann 897bb5aed2 new db for every encrypted test 2022-04-12 20:00:11 +02:00
Benjamin Kampmann 24266fe254 fixing ranges 2022-04-12 19:59:55 +02:00
Benjamin Kampmann 5d6c4852b1 fix media content test 2022-04-12 19:37:43 +02:00
Benjamin Kampmann 64e0356756 implementing encrypted keys 2022-04-12 19:17:49 +02:00
Benjamin Kampmann b611aa2503 remove store key feature and references 2022-04-12 16:58:56 +02:00
Benjamin Kampmann 1cdde23bc4 replace storeky with storecipher in wasm 2022-04-12 16:50:58 +02:00
Benjamin Kampmann b3c8f80b6e expose internal functionality for wasm-based storage 2022-04-12 16:50:44 +02:00
Jonas Platte 35f598a095 fix(sdk): Change the default guest_access state to Forbidden 2022-04-12 14:39:30 +02:00
Jonas Platte ad538f3f28 Upgrade Ruma 2022-04-12 14:39:30 +02:00
Jonas Platte 073d9db29f chore(crypto): Remove redundant match arms 2022-04-12 14:39:30 +02:00
Benjamin Kampmann cebe7bee92 adding encrypted tests for indexeddb store 2022-04-12 13:11:59 +02:00
Damir Jelić 7bd0f2c50c chore(sled): Fix a clippy warning 2022-04-12 13:06:17 +02:00
Benjamin Kampmann fb8f123616 fixing remaining key lookup 2022-04-12 12:44:34 +02:00
Damir Jelić 87632e7ead chore(crypto): Update vodozemac 2022-04-12 12:37:56 +02:00
Benjamin Kampmann 88be0ee9c1 fix user id streams 2022-04-12 12:24:11 +02:00
Benjamin Kampmann 000be73e80 making tests more explicit 2022-04-11 23:47:20 +02:00
Benjamin Kampmann 551711261d integration tests for encrypted version 2022-04-11 22:49:09 +02:00
Benjamin Kampmann 918d95a672 first batch of data for testing encrypted sled store 2022-04-11 22:11:14 +02:00
Benjamin Kampmann f79e6b87e2 use result 2022-04-11 20:42:35 +02:00
Benjamin Kampmann 529d1e0117 removing store key from sled store - for values 2022-04-11 13:52:08 +02:00
Jonas Platte 0dafd8cd65 chore: Update all unit test module names to the conventional 'tests' 2022-04-08 12:35:54 +00:00
Jonas Platte 1dbb0226ad feat(sdk): Check server versions after creating the Client 2022-04-08 14:16:55 +02:00
Damir Jelić 05826de639 fix(crypto): Box the RecoveryKey array so moves don't copy the key 2022-04-06 10:02:00 +02:00
Damir Jelić 4e05fe9f4a refactor(crypto): Simplify the Signing struct 2022-04-06 09:24:57 +02:00
Damir Jelić 26172ded49 ci: Test the WASM example in the CI run 2022-04-05 14:57:13 +02:00
Damir Jelić 814d4dcb8b chore(xtask): Check the wasm example when running the wasm tests 2022-04-05 14:47:24 +02:00
Damir Jelić b9f415e81e chore(sdk): Fix some clippy lints in the wasm example 2022-04-05 14:47:01 +02:00
Damir Jelić 124efe6f67 ci(wasm): Emscripten isn't needed anymore 2022-04-05 14:02:07 +02:00
Damir Jelić f2e2976496 fix(sdk): Make the wasm_command_bot example compile and work
This patch does a couple of things:

1. Fix the compilation of the example, Message -> MessageLike
2. Update Webpack and friends for the example
3. Remove futures-timer's Delay method and use equivalent methods from
   Tokio and wasm-timers.

The last point was needed because futures-timer would end up triggering
this error:
    ReferenceError: can't access lexical declaration '__wbg_clearTimeout_d8b36ad8fa330187' before initialization
2022-04-05 14:02:07 +02:00
Benjamin Kampmann 44be0cf12a chore(base): Make fields of RoomInfo and BaseRoomInfo private
Merge pull request #569 from matrix-org/jplatte/room-info-privacy
2022-04-05 11:20:12 +02:00
Benjamin Kampmann 64d9a1f633 docs: Add example to print the room history
Merge pull request #566 from jsparber/add_timeline_example
2022-04-04 17:21:14 +02:00