2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Fix inline bots with photos.

This commit is contained in:
John Preston
2018-03-13 13:29:42 +03:00
parent f792b0052f
commit 7de15ce5cf
2 changed files with 10 additions and 9 deletions

View File

@@ -1324,10 +1324,10 @@ Image *getImage(const MTPDwebDocumentNoProxy &document) {
}
Image *getImage(const MTPDwebDocument &document, QSize box) {
const auto size = getImageSize(document.vattributes.v);
if (size.isEmpty()) {
return blank();
}
//const auto size = getImageSize(document.vattributes.v);
//if (size.isEmpty()) {
// return blank();
//}
// We don't use size from WebDocument, because it is not reliable.
// It can be > 0 and different from the real size that we get in upload.WebFile result.
@@ -1342,10 +1342,10 @@ Image *getImage(const MTPDwebDocument &document, QSize box) {
}
Image *getImage(const MTPDwebDocumentNoProxy &document, QSize box) {
const auto size = getImageSize(document.vattributes.v);
if (size.isEmpty()) {
return blank();
}
//const auto size = getImageSize(document.vattributes.v);
//if (size.isEmpty()) {
// return blank();
//}
return getImage(qs(document.vurl), box);
}