You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ffi: Update Client::get_url to return raw data and to throw on HTTP errors
Client::get_url is there for SDK consumers to be able to use the
existing HTTP stack (configuration and all) however in practice it was a
bit weird:
- Responses came back as strings limiting the types of resource that
could be fetched (as well as requiring the string to be converted back
to data before handed to a JSON decoder).
- HTTP errors weren't being raised and instead you would find the (e.g.
404) error response in the Ok case.
This patch fixes both of these issues.
-`Client::get_max_media_upload_size` to get the max size of a request sent to the homeserver so we can tweak our media
117
119
uploads by compressing/transcoding the media.
118
-
- Add `ClientBuilder::enable_share_history_on_invite` to enable experimental support for sharing encrypted room history on invite, per [MSC4268](https://github.com/matrix-org/matrix-spec-proposals/pull/4268).
120
+
- Add `ClientBuilder::enable_share_history_on_invite` to enable experimental support for sharing encrypted room history
121
+
on invite, per [MSC4268](https://github.com/matrix-org/matrix-spec-proposals/pull/4268).
- Support for adding a Sentry layer to the FFI bindings has been added. Only `tracing` statements with
121
124
the field `sentry=true` will be forwarded to Sentry, in addition to default Sentry filters.
@@ -208,7 +211,8 @@ Breaking changes:
208
211
- The `dynamic_registrations_file` field of `OidcConfiguration` was removed.
209
212
Clients are supposed to re-register with the homeserver for every login.
210
213
211
-
-`RoomPreview::own_membership_details` is now `RoomPreview::member_with_sender_info`, takes any user id and returns an `Option<RoomMemberWithSenderInfo>`.
214
+
-`RoomPreview::own_membership_details` is now `RoomPreview::member_with_sender_info`, takes any user id and returns an
215
+
`Option<RoomMemberWithSenderInfo>`.
212
216
213
217
Additions:
214
218
@@ -223,9 +227,11 @@ Additions:
223
227
- Add `Timeline::send_thread_reply` for clients that need to start threads
- Add `ClientBuilder::session_pool_max_size`, `::session_cache_size` and `::session_journal_size_limit` to control the stores configuration, especially their memory consumption
230
+
- Add `ClientBuilder::session_pool_max_size`, `::session_cache_size` and `::session_journal_size_limit` to control the
231
+
stores configuration, especially their memory consumption
- Add `Room::member_with_sender_info` to get both a room member's info and for the user who sent the `m.room.member` event the `RoomMember` is based on.
236
+
- Add `Room::member_with_sender_info` to get both a room member's info and for the user who sent the `m.room.member`
0 commit comments