fix: Don't recode images in Viewtype::File messages (#5617)

This commit is contained in:
iequidoo
2024-05-22 20:10:55 -03:00
committed by bjoern
parent 907d3efcd0
commit 2214d140c3
2 changed files with 19 additions and 2 deletions

View File

@@ -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,