mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-02-14 17:44:12 -05:00
* sdk: Return a Thumbnail from generate_image_thumbnail We have already all the data for it. Also fixes an error where the thumbnail format was assumed to always be JPEG. * sdk: Allow to select the format of the generated thumbnail Sending an attachment could often fail if the image crate cannot encode the thumbnail to the same format as the original. This allows to select a known supported format to always be able to generate a thumbnail. * sdk: Do not return error of thumbnail generation for SendAttachment Since the thumbnail is optional, failing to generate it should not stop us from sending the attachment. * Apply code review fixes * sdk: Split attachment tests in separate file * sdk: Add integration tests for generating thumbnails * Revert wiremock debug log level --------- Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>