mirror of
https://github.com/chatmail/core.git
synced 2026-04-25 09:26:30 +03:00
fix: Don't recode images in Viewtype::File messages (#5617)
This commit is contained in:
15
src/blob.rs
15
src/blob.rs
@@ -1191,6 +1191,21 @@ mod tests {
|
||||
.await
|
||||
.unwrap();
|
||||
|
||||
send_image_check_mediaquality(
|
||||
Viewtype::File,
|
||||
Some("1"),
|
||||
bytes,
|
||||
"png",
|
||||
false, // no Exif
|
||||
1920,
|
||||
1080,
|
||||
0,
|
||||
1920,
|
||||
1080,
|
||||
)
|
||||
.await
|
||||
.unwrap();
|
||||
|
||||
// This will be sent as Image, see [`BlobObject::maybe_sticker`] for explanation.
|
||||
send_image_check_mediaquality(
|
||||
Viewtype::Sticker,
|
||||
|
||||
Reference in New Issue
Block a user