Richard van der Hoff
acfa8a4190
docs(bindings): Fix return type documentation for get_missing_sessions
2023-01-20 20:09:42 +01:00
Richard van der Hoff
c7f258d8b0
doc: Improve the documentation of "tracked users"
...
I had no idea what a tracked user was, so I've attempted to clarify this
somewhat for future readers.
Co-authored-by: Damir Jelić <poljar@termina.org.uk >
2023-01-20 14:02:02 +01:00
Jonas Platte
1e2fd02478
doc(base): Explain purpose of BaseClient#crypto_store
2023-01-20 10:56:09 +01:00
Stefan Ceriu
b0c70dc606
chore(bindings): Exclude the target folder from the debug swift package
...
… to improve package loading time.
2023-01-20 09:00:36 +00:00
Benjamin Kampmann
0fea33de4d
feat(ffi): expose server_versions on ClientBuilder
2023-01-19 21:31:57 +00:00
Damir Jelić
053b609899
chore(sdk): Add a prefix to the request id to make it easier to grep for them
2023-01-19 15:47:08 +01:00
Damir Jelić
a54a421f91
chore(sdk): Log the response/request sizes as well
2023-01-19 15:46:49 +01:00
Ivan Enderlin
9db09e22b2
feat(crypto-js): Request types have fields extracted from their “body” directly
...
feat(crypto-js): Request types have fields extracted from their “body” directly
2023-01-18 13:41:14 +01:00
Ivan Enderlin
94fadf74b9
feat(crypto-js): Rename RoomMessageRequest.content to .body.
2023-01-18 13:31:26 +01:00
Ivan Enderlin
7c01f8490f
test(crypto-js): Test `RoomMessageRequest.content.
2023-01-18 13:14:06 +01:00
Ivan Enderlin
ca00112804
test(crypto-js): Add test for in-room verification (w/ RoomMessageRequest).
2023-01-18 11:42:34 +01:00
Benjamin Kampmann
6c0ef2db51
refactor(ffi): refactor stoppable spawn to be more token-oriented
2023-01-18 10:08:58 +00:00
Benjamin Kampmann
938a03867b
feat(ffi): add subscribe_and_add_timeline_listener helper fn
...
re-applying the fixes from ##1346
2023-01-18 10:08:58 +00:00
Ivan Enderlin
90cce1a47c
chore(crypto-js): Improve documentation, and do a little clean up.
2023-01-18 10:58:59 +01:00
Ivan Enderlin
c427caf473
feat(crypto-js): Rename requests extra field to body.
2023-01-18 10:58:59 +01:00
Ivan Enderlin
3ad675db5c
feat(crypto-js): Extract RoomMessageRequest.event_type from EventContent.
2023-01-18 10:58:59 +01:00
Ivan Enderlin
efde81646b
feat(crypto-js): Extract RoomMessageRequest.content as a JSON-encoded string.
2023-01-18 10:58:59 +01:00
Ivan Enderlin
8f9859c41c
feat(crypto-js): Rename the body fields to extra to avoid confusion with HTTP terminology.
2023-01-18 10:58:58 +01:00
Ivan Enderlin
6248e2bc68
test(crypto-js): Update tests according to previous commit.
2023-01-18 10:58:58 +01:00
Ivan Enderlin
c0ccd55df8
feat(crypto-js): request! differentiates “extracted” and “grouped” fields.
2023-01-18 10:58:58 +01:00
Ivan Enderlin
b125b2e9da
test(crypto-js): Update tests according to previous commit.
2023-01-18 10:58:58 +01:00
Ivan Enderlin
3c838b2f4a
feat(crypto-js): Request types have fields from their “body” directly.
2023-01-18 10:58:58 +01:00
Jonas Platte
f4fba3efb7
fix(bindings): Add user_id to RoomMembership
...
Without that, it is useless.
2023-01-18 09:58:36 +01:00
Jonas Platte
e64b2f65da
Revert "refactor(bindings): Fetch latest event earlier"
...
This reverts commit 7d1372195c .
2023-01-18 09:31:45 +01:00
Doug
9e12a88e03
feat(bindings): Allow setting the store passphrase in the bindings
...
Co-authored-by: Damir Jelić <poljar@termina.org.uk >
2023-01-18 06:45:21 +00:00
Anderas
0af38d9a76
fix(crypto): Mark our own identity as verified if we have the private part of the identity
...
Co-authored-by: Denis Kasak <dkasak@termina.org.uk >
Co-authored-by: Damir Jelić <poljar@termina.org.uk >
2023-01-17 18:41:00 +00:00
Damir Jelić
ade3a09848
chore(base): Remove a leftover unwrap
2023-01-17 19:13:29 +01:00
Damir Jelić
3641e0d540
docs(crypto): Note that the in-room verification events need to be decrypted
2023-01-17 18:11:53 +01:00
Damir Jelić
e1d8c72d3a
chore(crypto): Improve some docs
...
Co-authored-by: Jonas Platte <jplatte@matrix.org >
2023-01-17 18:11:53 +01:00
Damir Jelić
c8d9581f8b
refactor!(crypto): Don't process in-room verification implicitly
2023-01-17 18:11:53 +01:00
Kévin Commaille
8cc632ffd1
feat(sdk): Add support for state events in the timeline
...
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr >
2023-01-17 12:10:19 +01:00
Kévin Commaille
1b7f4b4b42
fix(test): Fix position of prev_content in JSON
...
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr >
2023-01-17 12:10:19 +01:00
Damir Jelić
928871d16e
chore(sdk): Log the request body for sliding sync requests
2023-01-16 17:02:46 +01:00
Damir Jelić
87f5b251f5
chore(sdk): Add a request id counter to our HTTP client
...
This solves the issue of correlating different log lines that are talking
about the same request/response cycle. Plaintext logs would show this as
a flat structure, while something like Jaeger would show you a nice
tree. This allows you to reconstruct the tree in plaintext logs.
2023-01-16 17:02:46 +01:00
Damir Jelić
e76272a68b
chore(sdk): Improve the HTTP request sending logs
2023-01-16 17:02:46 +01:00
Damir Jelić
b30c74cb01
chore(crypto): Bump the to-device event logging to debug
2023-01-16 16:23:58 +01:00
Jonas Platte
686541155f
feat(sdk): Add display_name_ambiguous to timeline::Profile
2023-01-16 15:35:29 +01:00
Jonas Platte
b256b6f625
refactor(bindings): Fetch latest event earlier
...
Does this crash?
2023-01-16 15:35:29 +01:00
Jonas Platte
7b913a0759
feat(bindings): Add EventTimelineItem::sender_profile
2023-01-16 15:35:29 +01:00
Jonas Platte
9e60a9dd3f
feat(sdk): Attach profile information to timeline items
2023-01-16 15:35:29 +01:00
Jonas Platte
00bdb08973
refactor(sdk): Move locking of timeline_items into handle_remote_event
2023-01-16 15:35:29 +01:00
Jonas Platte
ed70ccb988
refactor(sdk): Add trait ProfileProvider for use in TimelineInner
2023-01-16 15:35:29 +01:00
Jonas Platte
e52af8a315
refactor(sdk): Make TimelineInner fields private
2023-01-16 15:35:29 +01:00
Jonas Platte
b5450ee5ad
test(sdk): Simplify TestTimeline construction
2023-01-16 15:35:29 +01:00
Jonas Platte
b105b34cf6
refactor(sdk): Use regular struct update syntax for EventTimelineItem
...
The previous solution was annoying to maintain and only more efficient
without compiler optimizations.
2023-01-16 15:35:29 +01:00
Jonas Platte
e0b0b632ec
chore: Fix a typo
2023-01-16 11:31:03 +01:00
Jonas Platte
4febe45364
refactor(base): Make AmbiguityChange(s) non-exhaustive
...
They are meant to be consumed, but not created, by other crates.
2023-01-16 11:31:03 +01:00
Jonas Platte
70de11a73a
refactor: Remove unused Deserialize, Serialize implementations
2023-01-16 11:31:03 +01:00
Jonas Platte
58f2d53293
doc(sdk): Update spec link
2023-01-16 11:31:03 +01:00
Doug
6540b9bb49
feat(bindings): Expose read receipts to FFI
2023-01-16 10:58:40 +01:00