Skip to content

matrix-sdk 0.10.0

Latest
Compare
Choose a tag to compare
@poljar poljar released this 04 Feb 15:45
· 43 commits to main since this release
matrix-sdk-0.10.0

What's Changed

Features

  • Allow to set and check whether an image is animated via its ImageInfo.
    (#4503)
  • Implement Default for BaseImageInfo, BaseVideoInfo, BaseAudioInfo and
    BaseFileInfo.
    (#4503)
  • Expose Client::server_versions() publicly to allow users of the library to
    get the versions of Matrix supported by the homeserver.
    (#4519)
  • Create RoomPrivacySettings helper to group room settings functionality
    related to room access and visibility.
    (#4401)
  • Enable HTTP/2 support in the HTTP client.
    (#4566)
  • The media contents stored in the media cache can now be controlled with a
    MediaRetentionPolicy and the new Media methods media_retention_policy(),
    set_media_retention_policy(), clean_up_media_cache().
    (#4571)

Refactor

  • [breaking]: The reexported types SyncTimelineEvent and TimelineEvent have been fused into a single type TimelineEvent, and its field push_actions has been made Optional (it is set to None when we couldn't compute the push actions, because we lacked some information).
    (#4568)
  • [breaking] Move the optional RequestConfig argument of the
    Client::send() method to the with_request_config() builder method. You
    should call Client::send(request).with_request_config(request_config).await
    now instead.
    (#4443)
  • [breaking] Remove the AttachmentConfig::with_thumbnail() constructor and
    replace it with the AttachmentConfig::thumbnail() builder method. You should
    call AttachmentConfig::new().thumbnail(thumbnail) now instead.
    (#4452)
  • [breaking] Room::send_attachment() and RoomSendQueue::send_attachment()
    now take any type that implements Into<String> for the filename.
    (#4451)
  • [breaking] Recovery::are_we_the_last_man_standing() has been renamed to is_last_device().
    (#4522)
  • [breaking] The matrix_auth module is now at authentication::matrix.
    (#4575)
  • [breaking] The oidc module is now at authentication::oidc.
    (#4575)