Commit Graph

2579 Commits

Author SHA1 Message Date
Benjamin Kampmann
418fac8574 fixing missing import for tests 2022-02-24 16:56:06 +01:00
Benjamin Kampmann
4c1e3ac03a fix missing import 2022-02-24 16:50:57 +01:00
Benjamin Kampmann
4d6d13b9c8 fixing some clippies and wrong package naming 2022-02-24 15:40:24 +01:00
Benjamin Kampmann
cccad6104c fixing formatting 2022-02-24 15:18:16 +01:00
Benjamin Kampmann
259ba3b794 refactor CI tests 2022-02-24 15:14:54 +01:00
Benjamin Kampmann
9c5cb08ac0 fixing crypto testing problems 2022-02-24 15:14:42 +01:00
Benjamin Kampmann
d7f30167a0 moving safe encode, making regular build work again 2022-02-24 13:02:35 +01:00
Benjamin Kampmann
e20bdfa2b5 cleaning up more cryptocrate 2022-02-23 21:33:31 +01:00
Benjamin Kampmann
12cf187e51 indexeddb store and passphrase opening 2022-02-23 21:07:39 +01:00
Benjamin Kampmann
ed0974eba3 re-integrate sled and indexeddb stores into base 2022-02-23 19:38:35 +01:00
Benjamin Kampmann
692f9d893a chore(CI): also skip docs making on draft PRs 2022-02-23 16:07:16 +01:00
Benjamin Kampmann
21887877da chore(CI): limit CI runs to non-draft PRs and manual dispatching 2022-02-23 16:04:05 +01:00
Benjamin Kampmann
73227623e6 one more fmt 2022-02-23 15:46:44 +01:00
Benjamin Kampmann
eeea757719 clippy and formatting 2022-02-23 15:44:36 +01:00
Benjamin Kampmann
f6a3c765e9 Merge remote-tracking branch 'origin/main' into ben-splitting-out-store-impls 2022-02-23 15:33:38 +01:00
Benjamin Kampmann
8414718371 feat(StateStore): Adding forward and backwards streams for room timelines
Merge pull request #486 from jsparber/timeline_stream
2022-02-23 14:38:14 +01:00
Benjamin Kampmann
78af96dab3 Clippy and Cargo fmt 2022-02-23 12:50:57 +01:00
Benjamin Kampmann
2598001c8f room version simplification 2022-02-23 12:40:37 +01:00
Benjamin Kampmann
c22b4fcfb2 minor refactor for simplicity 2022-02-23 12:37:10 +01:00
Damir Jelić
2b20055eb5 Merge branch 'test-refactor' 2022-02-23 10:30:23 +01:00
Damir Jelić
e846fedc3f feat(sdk): Support logging in using SSO with an identity provider 2022-02-23 10:27:07 +01:00
Julian Sparber
980076fd73 Merge remote-tracking branch 'origin/main' into timeline_stream 2022-02-22 17:30:51 +01:00
Julian Sparber
3378d18ca8 store: Add comment why we can ignore unexpected TimelineSlices 2022-02-22 16:49:42 +01:00
Julian Sparber
70e826ff25 Fix style issue 2022-02-22 15:48:56 +01:00
Julian Sparber
890a8675c9 store: Use BoxStream type without explicit lifetime 2022-02-22 15:43:26 +01:00
Julian Sparber
7627c142c4 Add method to optain timeline stream in one direction 2022-02-22 15:42:39 +01:00
Julian Sparber
84c46affa3 Fix example for Room::Common::timeline() 2022-02-22 12:51:44 +01:00
Benjamin Kampmann
5b1746e451 Merge pull request #503 from ShadowJonathan/labs-folder
Add `labs/` folder
2022-02-22 12:01:47 +01:00
Julian Sparber
d7592cce29 Merge remote-tracking branch 'origin/main' into timeline_stream 2022-02-22 11:47:17 +01:00
Julian Sparber
088086715f store: Save timeline to IndexedDbStore 2022-02-22 11:43:12 +01:00
Jonathan de Jong
7c9d139031 Apply suggestions from code review
Co-authored-by: Benjamin Kampmann <ben.kampmann@gmail.com>
2022-02-21 22:08:41 +01:00
Jonathan de Jong
28ac6f9f52 add labs folder 2022-02-21 21:37:56 +01:00
Jonas Platte
b39a72ceac matrix-sdk-test: Stop relying on event enum Serialize impls
In the latest version of Ruma, the event enums no longer implement
`Serialize` because it was somewhat of a footgun when custom /
unrecognized events were involved.
2022-02-21 14:50:41 +01:00
Benjamin Kampmann
6aeb382706 move state inspector for sled store into corresponding crate 2022-02-21 12:08:45 +01:00
Benjamin Kampmann
87cd9a3afc clean up base 2022-02-18 20:41:42 +01:00
Benjamin Kampmann
95384f0f33 make encryption in new crates optional 2022-02-18 18:50:35 +01:00
Benjamin Kampmann
00ea5d9cad moving sled cryptostore, too 2022-02-18 18:46:59 +01:00
Benjamin Kampmann
1563ecdf1a Merge pull request #499 from matrix-org/ben-docs-for-custom-http-client
Minor improvements on ClientConfig
2022-02-17 20:37:47 +01:00
Benjamin Kampmann
7ab8872dd5 fix(Version): removing (crate only) VERSION const 2022-02-17 19:25:09 +01:00
Benjamin Kampmann
5d812d4aa7 fixing style 2022-02-17 19:09:10 +01:00
Benjamin Kampmann
0ca6ec1377 moving sled state store into separate crate 2022-02-17 19:02:17 +01:00
Benjamin Kampmann
1d0d32858b fix(ClientConfig): Do not expose crate version in user agent anymore 2022-02-17 18:53:32 +01:00
Julian Sparber
8e80e02a78 Add test for matrix_sdk::room::Common::timeline()
The test is only run when the `sled_state_store` feature is enabled.
This also changes the test_json::MORE_SYNC and test_json::MORE_SYNC_2 to
not responsed with a limited timeline.
2022-02-17 18:32:44 +01:00
Julian Sparber
9e7bee89c8 Add test for timeline cache 2022-02-17 18:32:44 +01:00
Julian Sparber
fb3edeb206 store: Save timeline to MemoryStore 2022-02-17 18:32:36 +01:00
Julian Sparber
516aa26589 store: Save timeline to SledStore
This writes slices from StateChanges::timeline to the SledStore.
The cache is removed when ever a limited sync response is received or
when an event already known to the store is received.

Stored events are redacted when a redaction event is received.
2022-02-17 16:15:17 +01:00
Julian Sparber
7d19e9aa34 test: Add mocked responses need for timeline storage 2022-02-17 16:15:17 +01:00
Julian Sparber
64c49cd137 Add stream to obtain the timeline of a room 2022-02-17 16:15:17 +01:00
Julian Sparber
c5950ac929 common: add TimelineSlice
The TimelineSlice is a slice of the timeline of a room and contains the
start and end of the slice.
2022-02-17 16:13:04 +01:00
Benjamin Kampmann
ea92bc676c Merge remote-tracking branch 'origin/main' into ben-splitting-out-store-impls 2022-02-17 16:03:07 +01:00