Benjamin Bouvier
1aff90a96f
chore: fix doc comments in code and READMEs
...
Signed-off-by: Benjamin Bouvier <public@benj.me >
2023-05-09 10:21:48 +02:00
Jonas Platte
1380e9c4ec
Inline sync response structs with a single field
2023-05-09 10:08:34 +02:00
Jonas Platte
40c0f0896e
Add some missing copyright headers
2023-05-09 10:08:34 +02:00
Jonas Platte
aa3b2d4698
base: Don't log raw event for notifications
2023-05-09 10:08:34 +02:00
Jonas Platte
935dc6ec41
base: Remove presence events from debug output
...
We shouldn't be logging raw events, and there's not really a useful
subset we could include.
2023-05-09 10:08:34 +02:00
Jonas Platte
ae4518c1a7
base: Remove unused Deserialize, Serialize impls
2023-05-09 10:08:34 +02:00
Jonas Platte
2d1f514a13
Box fields to reduce stack size of structs
2023-05-08 18:47:01 +02:00
Jonas Platte
ce3c818156
Box futures to reduce composed future's sizes
2023-05-08 18:47:01 +02:00
Jonas Platte
1bc99a62a5
Make Store::save_changes non-lazy
2023-05-08 18:47:01 +02:00
Jonas Platte
3a74e8647b
Reduce amount of local variables before .await in async fn
2023-05-08 18:47:01 +02:00
Jonas Platte
c3d7a0704a
A little bit of cleanup
2023-05-08 18:47:01 +02:00
Jonas Platte
a8fb54ee67
Replace qualified name with use
2023-05-08 18:47:01 +02:00
Jonas Platte
c5decd2294
crypto: Pass AnyToDeviceEventContent by reference
...
… in a few places where it doesn't need to be moved.
2023-05-08 18:47:01 +02:00
Jonas Platte
9c4cce5fd0
crypto: Clean up OlmMachine::with_store
...
- Remove an unnecessary else {}
- Reorder logging instructions
2023-05-08 18:47:01 +02:00
Jonas Platte
37ed3d0a59
sdk: Don't skip event reordering when re-receiving redacted event
2023-05-08 18:12:53 +02:00
Jonas Platte
3013c911fd
sdk: Fix log message
2023-05-08 18:12:53 +02:00
Alfonso Grillo
7ac6ebfb7f
Add invited and joined counts
2023-05-08 18:12:12 +02:00
Ivan Enderlin
43b28e6087
feat(sdk): Remove the need to “restart” SlidingSync
...
feat(sdk): Remove the need to “restart” `SlidingSync`
2023-05-08 17:24:36 +02:00
Ivan Enderlin
6c8a19cf01
chore: Make Clippy happy.
2023-05-08 16:58:00 +02:00
Ivan Enderlin
bfcedcd49c
feat(sdk): SlidingSync::*subscribe will cancel in-flight requests.
...
`SlidingSync::subscribe` and `SlidingSync::unsubscribe` will cancel in-
flight requests, i.e. the `SlidingSyncInternalMessage::ContinueSyncLoop`
will be sent in the internal channel, just like what `SlidingSyncList`s
already do when a parameter is changed.
2023-05-08 16:44:49 +02:00
Ivan Enderlin
748ae86a88
feat(sdk): Cloning SlidingSyncListBuilder clones the once_built closure.
2023-05-08 15:24:58 +02:00
Ivan Enderlin
cfa2f1d049
chore: Make Clippy happy.
2023-05-08 14:20:18 +02:00
Ivan Enderlin
87f481ce7d
!fixup
2023-05-08 14:17:39 +02:00
Ivan Enderlin
281944696a
Merge branch 'main' into feat-sdk-sliding-sync-cancellation-token
2023-05-08 14:11:20 +02:00
Ivan Enderlin
673d51a9d9
test(sdk): Test SlidingSyncListBuilder::once_built.
2023-05-08 14:10:27 +02:00
Kévin Commaille
f92c3649e9
ffi: Use SQLite state store
...
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr >
2023-05-08 12:11:10 +02:00
Kévin Commaille
c9fde8cf89
sdk: Add bundled-sqlite Cargo feature
...
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr >
2023-05-08 12:11:10 +02:00
Kévin Commaille
991a42d8d6
sled: Add docsrs feature for docs generation
...
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr >
2023-05-08 12:11:10 +02:00
Kévin Commaille
d7e47501e3
benchmarks: Replace sled with SQLite
...
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr >
2023-05-08 12:11:10 +02:00
Kévin Commaille
ea826a257d
sdk: Replace Sled with SQLite as defaut store
...
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr >
2023-05-08 12:11:10 +02:00
Kévin Commaille
09e446b1d5
sqlite: Fix doc error
...
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr >
2023-05-08 12:11:10 +02:00
Kévin Commaille
6bae0793f9
codecov: Add SQLite store as default crate
...
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr >
2023-05-08 12:11:10 +02:00
Jonas Platte
32fafe7be3
Pin rust nightly version
...
Works around https://github.com/rust-lang/rust/issues/111320 .
2023-05-08 10:44:14 +02:00
Ivan Enderlin
0dab71e94b
fix(sdk): Fix previous merge.
2023-05-08 10:16:03 +02:00
Ivan Enderlin
150df1d6ce
fix(sdk): Fix previous merge.
2023-05-08 10:07:32 +02:00
Ivan Enderlin
cdb992e3b2
Merge branch 'main' into feat-sdk-sliding-sync-cancellation-token
2023-05-08 09:55:02 +02:00
Kévin Commaille
69c8b9f049
sdk: Add method to check if device is verified with cross-signing
...
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr >
2023-05-06 20:06:40 +02:00
Kévin Commaille
2c3664c2b3
sdk: Document when a created room is set as direct
...
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr >
2023-05-06 19:50:42 +02:00
Jonas Platte
33c84b9ffd
crypto: Reduce stack size of OlmMachine
2023-05-05 14:24:44 +02:00
Jonas Platte
e5375a475e
crypto: Reduce stack size of Store
...
… and make it cheaper to clone.
Reduces the stack size of OlmMachine from 3632 bytes to 832 bytes.
2023-05-05 14:24:44 +02:00
Jonas Platte
794ab8bc9f
crypto: Borrow InboundGroupSession for async fn's that don't need to own
...
Reduces the size of the returned futures.
2023-05-05 12:39:50 +02:00
Jonas Platte
70c2cf6fe4
sdk: Reduce size of futures in http_client
2023-05-05 12:39:50 +02:00
Jonas Platte
88580d95bf
Consistently use Ruma's Owned*Id types
...
… for simplicity; instead of `Arc<*Id>`.
2023-05-05 12:34:15 +02:00
Mauro
b9cc0b5249
ffi: Add Client::get_notification_item
...
… and remove NotificationService.
2023-05-05 11:27:56 +02:00
Jonas Platte
848de833cc
sdk: Fill in replied-to event from timeline items when available
2023-05-05 10:54:01 +02:00
Jonas Platte
10d441f580
sdk: Log redactions of already-redacted events
2023-05-05 10:18:13 +02:00
Marcel
211690ab44
Add missing const to make epilogue.js work in ECMAScript Module compatibility mode
...
Signed-off-by: Marcel Radzio <mtrnord [AT] nordgedanken.dev>
2023-05-05 10:17:36 +02:00
Jonas Platte
c6c5e7fca6
Add CODEOWNERS file for automatic review requests
2023-05-04 16:41:04 +02:00
Ivan Enderlin
a91cd93a77
Merge pull request #1860 from bnjbvr/make-builder-build-infallible
...
Make `SlidingSyncListBuilder::build` infallible
2023-05-04 16:00:40 +02:00
Benjamin Bouvier
e05f8001cf
Mandate a Client when creating a SlidingSyncBuilder
...
Signed-off-by: Benjamin Bouvier <public@benj.me >
2023-05-04 15:42:35 +02:00