mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Fix implicit conversions from QByteArray
This commit is contained in:
@@ -107,7 +107,7 @@ PreparedFileThumbnail FinalizeFileThumbnail(
|
||||
bool isSticker) {
|
||||
prepared.name = isSticker ? qsl("thumb.webp") : qsl("thumb.jpg");
|
||||
if (FileThumbnailUploadRequired(filemime, filesize)) {
|
||||
const auto format = QByteArray(isSticker ? "WEBP" : "JPG");
|
||||
const auto format = isSticker ? "WEBP" : "JPG";
|
||||
auto buffer = QBuffer(&prepared.bytes);
|
||||
prepared.image.save(&buffer, format, kThumbnailQuality);
|
||||
}
|
||||
|
Reference in New Issue
Block a user