Jonas Platte
f4bfbdf97d
chore: Upgrade base64
2023-01-10 10:19:02 +01:00
Jonas Platte
2e30e11101
refactor: Use workspace dependencies for more crates
2023-01-10 10:19:02 +01:00
Jonas Platte
3af6ba245c
refactor: Fully replace matches crate with assert_matches
2023-01-10 10:19:02 +01:00
Benjamin Kampmann
db1d31c9cc
fix(sliding-sync): Do not implictly activate to-device extension upon unfreeze
...
Previously, when we found a since-token in the frozen state, we'd always activate the to-device extensions
regardless of whether the user had activated it in their builder or didn't. With this change we are only
setting the since parameter from cache if the user actually activated the to-device extension.
2023-01-10 10:04:31 +01:00
Jonas Platte
444a82fd9e
fix(sdk): Small documentation update
2023-01-10 10:01:26 +01:00
Jonas Platte
6e218bdebc
feat(sdk): Make pagination more flexible and smarter
...
- Don't actually fire off a request when the top of the timeline has
already been reached
- Allow making multiple requests without removing the loading indicator
in between
2023-01-10 10:01:26 +01:00
Jonas Platte
9b3bf5a4fa
feat(sdk): Add TimelineStart virtual timeline item
2023-01-10 10:01:26 +01:00
Jonas Platte
237edcd747
refactor(sdk): Move day_divider constructor to TimelineItem
2023-01-10 10:01:26 +01:00
Jonas Platte
271e925adc
refactor(sdk): Add and use TimelineItem::{read_marker, is_read_marker}
2023-01-10 10:01:26 +01:00
Benjamin Kampmann
514530c19a
fix(sliding-sync): ensure last index is also invalidated
...
Index ranges are inclusive, but our loop would stop one short. This particuarly
tricky when the selective view is moved, as we didn't properly invalidate all items.
2023-01-09 22:48:57 +00:00
Benjamin Kampmann
58aec0d126
feat(uniffi): Add support to set list filters on sliding sync view builders ( #1296 )
...
* feat(uniffi): Add support to set list filters on sliding sync view builders
* fix: expose SlidingSyncRequestListFilters via proc-macros
2023-01-09 14:45:35 +00:00
dependabot[bot]
63c8696cac
chore(deps): bump tokio from 1.22.0 to 1.23.1
...
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 1.22.0 to 1.23.1.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.22.0...tokio-1.23.1 )
---
updated-dependencies:
- dependency-name: tokio
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-07 14:06:32 +01:00
Damir Jelić
6aff4fc2c0
Update the bindings to use the SAS signalling ( #1300 )
...
* feat(bindings): Expose support for manually starting SAS verifications
Co-authored-by: Stefan Ceriu <stefanc@matrix.org >
matrix-sdk-crypto-ffi-0.1.8
2023-01-06 10:20:40 +01:00
Jonas Platte
8375c47f42
feat(sdk): Add pagination loading indicator as a virtual timeline item
2023-01-06 09:48:44 +01:00
Jonas Platte
1b2387bcb2
refactor(sdk): Enforce no pagination overlap in timeline
...
… by locking the pagination token for the entire duration of the API call.
2023-01-06 09:48:44 +01:00
Jonas Platte
1e71036b19
refactor(sdk): Simplify day divider matching
2023-01-06 09:48:44 +01:00
Jonas Platte
e0f5dc97a5
refactor(bindings): Avoid single letter type aliases
2023-01-05 10:53:56 +01:00
Jonas Platte
64f367d474
feat(bindings): Expose all TimelineItemContent variants
2023-01-05 10:53:56 +01:00
Jonas Platte
bb39c2aa9d
feat(sdk): Persist sliding-sync to-device extension since value
2023-01-04 19:05:37 +01:00
Jonas Platte
b82cd7fa5a
refactor(common): Simplify wasm timeout implementation
...
… and remove an infinitely-recursive From impl in the process.
2023-01-04 18:59:11 +01:00
Jonas Platte
6780dc0312
refactor(sdk): Increase default request timeout to 30s
2023-01-04 17:55:18 +01:00
Damir Jelić
72519b7386
chore(labs): Use clap instead of structopt for jack-in
...
Update to clap v4 in jack-in
2023-01-04 12:49:50 +01:00
Jonas Platte
c7b41e3fca
test(sdk): Add a test for TimelineInner::add_initial_events
2023-01-04 12:44:51 +01:00
Marcel Kräml
5852d751bd
Updated jack-in README.md for full-sync-mode lowercase options
...
Signed-off-by: Marcel Kräml <m.kraeml@kraeml.it >
2023-01-04 12:38:54 +01:00
Marcel Kräml
cda596ebed
Changed full_sync_mode to lowercase
...
Signed-off-by: Marcel Kräml <m.kraeml@kraeml.it >
2023-01-04 12:21:14 +01:00
Jonas Platte
a5e17be3a1
refactor(bindings): Only create a timeline for SlidingSyncRoom if needed
2023-01-04 11:44:07 +01:00
Jonas Platte
33cdc108b5
chore(sdk): Log number of events in add_initial_events
2023-01-04 11:44:07 +01:00
Jonas Platte
c3dfd2e744
refactor(sdk): Only lock timeline items if needed in add_initial_events
2023-01-04 11:44:07 +01:00
Jonas Platte
8ab5bb7fca
refactor(sdk): Use HttpError::client_api_error_kind
2023-01-04 11:44:07 +01:00
Jonas Platte
80d8a8f41f
refactor: Import tracing macros
2023-01-04 11:44:07 +01:00
Jonas Platte
46fe998a33
refactor(crypto): Improve logging
2023-01-03 13:09:09 +01:00
Jonas Platte
7efbba5d8b
refactor(sdk): Improve logging in timeline::event_handler
2023-01-03 13:09:09 +01:00
Jonas Platte
907d50f773
refactor(sdk): Move TimelineInnerMetadata definition to timeline::inner
2023-01-03 13:09:09 +01:00
Jonas Platte
9cba98ae1b
feat(sdk): Add num_updates to timeline PaginationOutcome
2023-01-03 09:44:23 +01:00
Jonas Platte
108950c706
refactor(sdk): Remove update_timeline_item
...
… inlining it into its only call site.
2023-01-03 09:44:23 +01:00
Jonas Platte
4452e15489
refactor(sdk): Rename TimelineEventHandler#event_added to item_created
2023-01-03 09:44:23 +01:00
Matthew Hodgson
b026d90bcf
fix(sdk): Handle to-device sliding sync extension correctly
...
Co-authored-by: Jonas Platte <jplatte@matrix.org >
2023-01-02 18:00:38 +00:00
Jonas Platte
aa5f74ffb1
fix(sdk): Fix clippy lint
2023-01-02 12:45:50 +01:00
Jonas Platte
469c6cf104
fix(sdk): Don't log raw JSON which can contain personal data
2023-01-02 12:45:50 +01:00
Jonas Platte
3c5b005aae
fix(sdk): Remove message contents from TimelineItem debug string
2023-01-02 12:45:50 +01:00
Marcel Kräml
eef0bf4b91
Fixed clap for jack-in and update README.md
...
Signed-off-by: Marcel Kräml <m.kraeml@kraeml.it >
2022-12-23 11:29:21 +01:00
Marcel Kräml
ad1011ec53
Replace structopt with clap in jack-in
...
Signed-off-by: Marcel Kräml <m.kraeml@kraeml.it >
2022-12-23 11:17:02 +01:00
Jonas Platte
c215ac1f4b
ci: Specify which version of wasm-pack we want
2022-12-22 16:06:48 +01:00
Jonas Platte
187696aa62
ci: Use latest version of wasm-pack-action
2022-12-22 16:06:48 +01:00
Jonas Platte
e1e094f2f4
chore(sdk): Lower log level of event ID duplication event
2022-12-22 14:45:41 +01:00
Damir Jelić
e2d4be2050
chore: Fix our build badge
2022-12-22 11:26:29 +01:00
Jonas Platte
7dc4d47d3c
refactor(sdk): Store timeline event handler handles in a Vec
...
… instead of individual EventHandlerDropGuard's that each individually
hold a copy of Client.
2022-12-22 10:32:03 +01:00
Jonas Platte
9bad6faedd
feat(sdk): Retry event decryption on forwarded room keys
2022-12-22 08:37:17 +01:00
Jonas Platte
3a715ea822
refactor(sdk): Move timeline m.room_key handler into new module
2022-12-22 08:37:17 +01:00
Jonas Platte
f58f3fe055
chore(sdk): Add more logging to decryption retrying
2022-12-22 08:37:17 +01:00